Fix linking problem.

This commit is contained in:
lain 2018-05-19 11:27:14 +02:00
commit df95118c81
2 changed files with 8 additions and 0 deletions

View file

@ -160,6 +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)
uuid_text =
links