Merge branch 'support-emoji-staticfe' into 'develop'

Add emoji support in statuses in staticfe

Closes #1453

See merge request pleroma/pleroma!2324
This commit is contained in:
rinpatch 2020-03-23 10:43:20 +00:00
commit d931a59072
2 changed files with 3 additions and 1 deletions

View file

@ -60,7 +60,9 @@ defp represent(%Activity{object: %Object{data: data}} = activity, selected) do
content =
if data["content"] do
Pleroma.HTML.filter_tags(data["content"])
data["content"]
|> Pleroma.HTML.filter_tags()
|> Pleroma.Emoji.Formatter.emojify(Map.get(data, "emoji", %{}))
else
nil
end

Binary file not shown.