Merge branch 'feature/camelcase-hashtags' into 'develop'

formatter: preserve case of hashtags

Closes #165

See merge request pleroma/pleroma!262
This commit is contained in:
lambda 2018-08-06 18:07:01 +00:00
commit c957cd98f0

View File

@ -244,8 +244,8 @@ defmodule Pleroma.Formatter do
subs = subs =
subs ++ subs ++
Enum.map(tags, fn {_, tag, uuid} -> Enum.map(tags, fn {tag_text, tag, uuid} ->
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_text}</a>"
{uuid, url} {uuid, url}
end) end)