mirror of
https://git.pleroma.social/sjw/pleroma.git
synced 2024-11-15 17:56:16 +01:00
formatting
This commit is contained in:
parent
145546e52a
commit
c033d2004b
@ -109,7 +109,7 @@ defmodule Pleroma.Web.CommonAPI.Utils do
|
||||
|> Enum.sort_by(fn {tag, _} -> -String.length(tag) end)
|
||||
|
||||
Enum.reduce(tags, text, fn {full, tag}, text ->
|
||||
url = "<a href='#{Pleroma.Web.base_url}/tag/#{tag}' rel='tag'>##{tag}</a>"
|
||||
url = "<a href='#{Pleroma.Web.base_url()}/tag/#{tag}' rel='tag'>##{tag}</a>"
|
||||
String.replace(text, full, url)
|
||||
end)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user