From 8e99b530c4b6aa3327908121e984e223cb4f7fa1 Mon Sep 17 00:00:00 2001 From: Zero Date: Sun, 27 Nov 2022 12:10:31 -0500 Subject: [PATCH] Still allow inline fake emojis --- priv/scrubbers/default.ex | 2 ++ 1 file changed, 2 insertions(+) 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",