mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2024-12-22 16:16:34 +00:00
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:
commit
d931a59072
2 changed files with 10 additions and 1 deletions
|
@ -60,7 +60,9 @@ defmodule Pleroma.Web.StaticFE.StaticFEController 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
|
||||
|
|
|
@ -174,3 +174,10 @@ button {
|
|||
font-weight: 500;
|
||||
font-size: 16px;
|
||||
}
|
||||
|
||||
img.emoji {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
padding: 0;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue