logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: 889938d76ac28783a59aa38abfb00885808b8a18
parent 8f9a139ba17fa99ca472d15023485290db0e8faf
Author: nicole mikołajczyk <git@mkljczk.pl>
Date:   Fri, 10 Oct 2025 05:21:49 +0200

Scrubber: Allow `quote-inline` class in <p> tags used by Mastodon quotes

Signed-off-by: nicole mikołajczyk <git@mkljczk.pl>

Diffstat:

Achangelog.d/scrubber-inline-quotes-mastodon.add2++
Mpriv/scrubbers/default.ex2++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/changelog.d/scrubber-inline-quotes-mastodon.add b/changelog.d/scrubber-inline-quotes-mastodon.add @@ -0,0 +1 @@ +Scrubber: Allow `quote-inline` class in <p> tags used by Mastodon quotes +\ No newline at end of file diff --git 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"])