X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=priv%2Fscrubbers%2Fdefault.ex;h=37ffaef3a0ba3e4ec9e3b0742020fe8dd9441f6e;hb=08d49fba7d52e3eda5292913f1a466326f6b0cdf;hp=68ac06e321cf4d2fa2cc6ba2d50c4d4c462c4cf0;hpb=e9f1897cfdb32c890e9eaf2e894128be5c7e1123;p=akkoma diff --git a/priv/scrubbers/default.ex b/priv/scrubbers/default.ex index 68ac06e32..37ffaef3a 100644 --- a/priv/scrubbers/default.ex +++ b/priv/scrubbers/default.ex @@ -56,26 +56,24 @@ defmodule Pleroma.HTML.Scrubber.Default do Meta.allow_tag_with_these_attributes(:u, []) Meta.allow_tag_with_these_attributes(:ul, []) - Meta.allow_tags_with_style_attributes([:span]) - Meta.allow_tag_with_this_attribute_values(:span, "class", [ "h-card", "quote-inline", "mfm", - "_mfm_tada_", - "_mfm_jelly_", - "_mfm_twitch_", - "_mfm_shake_", - "_mfm_spin_", - "_mfm_jump_", - "_mfm_bounce_", - "_mfm_flip_", - "_mfm_x2_", - "_mfm_x3_", - "_mfm_x4_", - "_mfm_blur_", - "_mfm_rainbow_", - "_mfm_rotate_" + "mfm _mfm_tada_", + "mfm _mfm_jelly_", + "mfm _mfm_twitch_", + "mfm _mfm_shake_", + "mfm _mfm_spin_", + "mfm _mfm_jump_", + "mfm _mfm_bounce_", + "mfm _mfm_flip_", + "mfm _mfm_x2_", + "mfm _mfm_x3_", + "mfm _mfm_x4_", + "mfm _mfm_blur_", + "mfm _mfm_rainbow_", + "mfm _mfm_rotate_" ]) Meta.allow_tag_with_these_attributes(:span, [ @@ -98,7 +96,6 @@ defmodule Pleroma.HTML.Scrubber.Default do Meta.allow_tag_with_these_attributes(:img, [ "width", "height", - "class", "title", "alt" ])