diff --git a/priv/scrubbers/default.ex b/priv/scrubbers/default.ex index 771f27ac1..1098e5437 100644 --- a/priv/scrubbers/default.ex +++ b/priv/scrubbers/default.ex @@ -95,6 +95,8 @@ defmodule Pleroma.HTML.Scrubber.Default do # restrict img tags to http/https only, because of MediaProxy. Meta.allow_tag_with_uri_attributes(:img, ["src"], ["http", "https"]) + Meta.allow_tag_with_this_attribute_values(:img, ["class"], ["emoji"]) + Meta.allow_tag_with_these_attributes(:img, [ "width", "height",