Support Undo like activities (Fix #139)

This commit is contained in:
Thog 2018-05-19 15:22:43 +02:00
commit 6f39ecc41b
No known key found for this signature in database
GPG key ID: 0CD291558FAFDBC6
9 changed files with 124 additions and 10 deletions

View file

@ -160,7 +160,7 @@ defmodule Pleroma.Formatter do
links =
Regex.scan(@link_regex, text)
|> Enum.map(fn [url] -> {Ecto.UUID.generate(), url} end)
|> Enum.sort_by(fn ({_, url}) -> -String.length(url) end)
|> Enum.sort_by(fn {_, url} -> -String.length(url) end)
uuid_text =
links