Demojify already decodes

This commit is contained in:
Mark Felder 2021-06-11 18:06:25 -05:00
parent f48f3e8b46
commit 45146b0010

View File

@ -49,7 +49,6 @@ defmodule Pleroma.Web.Metadata.Utils do
# html content comes from DB already encoded, but demojify decodes for us # html content comes from DB already encoded, but demojify decodes for us
content content
|> Emoji.Formatter.demojify() |> Emoji.Formatter.demojify()
|> HtmlEntities.decode()
|> String.replace(~r/<br\s?\/?>/, " ") |> String.replace(~r/<br\s?\/?>/, " ")
|> HTML.strip_tags() |> HTML.strip_tags()
|> HtmlEntities.decode() |> HtmlEntities.decode()