Pleroma.Formatter: width/height to class=emoji
[akkoma] / lib / pleroma / html.ex
index 726c370ad7a66ba34f7089b51ba82001c2bad265..d1da746de0c781d6bd08a386641cad36492c9fd4 100644 (file)
@@ -151,6 +151,7 @@ defmodule Pleroma.HTML.Scrubber.TwitterText do
     Meta.allow_tag_with_these_attributes("img", [
       "width",
       "height",
+      "class",
       "title",
       "alt"
     ])
@@ -221,6 +222,7 @@ defmodule Pleroma.HTML.Scrubber.Default do
     Meta.allow_tag_with_these_attributes("img", [
       "width",
       "height",
+      "class",
       "title",
       "alt"
     ])