diff --git a/priv/scrubbers/default.ex b/priv/scrubbers/default.ex index 79fa6dcdf..0e861fcac 100644 --- a/priv/scrubbers/default.ex +++ b/priv/scrubbers/default.ex @@ -71,10 +71,11 @@ 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", - "class", "title", "alt" ])