Add emoji support in statuses in staticfe

This commit is contained in:
Egor Kislitsyn 2020-03-23 14:03:31 +04:00
parent 7dbf1ffa86
commit 5a34dca8ed
No known key found for this signature in database
GPG key ID: 1B49CB15B71E7805
2 changed files with 10 additions and 1 deletions

View file

@ -60,7 +60,9 @@ defmodule Pleroma.Web.StaticFE.StaticFEController do
content = content =
if data["content"] do 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 else
nil nil
end end

View file

@ -174,3 +174,10 @@ button {
font-weight: 500; font-weight: 500;
font-size: 16px; font-size: 16px;
} }
img.emoji {
width: 32px;
height: 32px;
padding: 0;
vertical-align: middle;
}