From 889938d76ac28783a59aa38abfb00885808b8a18 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?nicole=20miko=C5=82ajczyk?= Date: Fri, 10 Oct 2025 05:21:49 +0200 Subject: [PATCH] Scrubber: Allow `quote-inline` class in

tags used by Mastodon quotes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: nicole mikołajczyk --- changelog.d/scrubber-inline-quotes-mastodon.add | 1 + priv/scrubbers/default.ex | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 changelog.d/scrubber-inline-quotes-mastodon.add diff --git a/changelog.d/scrubber-inline-quotes-mastodon.add b/changelog.d/scrubber-inline-quotes-mastodon.add new file mode 100644 index 000000000..a8006e423 --- /dev/null +++ b/changelog.d/scrubber-inline-quotes-mastodon.add @@ -0,0 +1 @@ +Scrubber: Allow `quote-inline` class in

tags used by Mastodon quotes \ No newline at end of file diff --git a/priv/scrubbers/default.ex b/priv/scrubbers/default.ex index dad9dc1a1..ab82663be 100644 --- a/priv/scrubbers/default.ex +++ b/priv/scrubbers/default.ex @@ -83,6 +83,8 @@ defmodule Pleroma.HTML.Scrubber.Default do "quote-inline" ]) + Meta.allow_tag_with_this_attribute_values(:p, "class", ["quote-inline"]) + Meta.allow_tag_with_these_attributes(:span, ["lang"]) Meta.allow_tag_with_this_attribute_values(:code, "class", ["inline"])