Commit c1b8a6a7 authored by kaniini's avatar kaniini

Merge branch 'feature/formatter-consistent-hashtag-mentions' into 'develop'

formatter: consistent presentation of hashtags and mentions

See merge request pleroma/pleroma!280
parents 7266cc67 c033d200
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment