logo

pleroma

My custom branche(s) on git.pleroma.social/pleroma/pleroma git clone https://anongit.hacktivis.me/git/pleroma.git/
commit: e74b6ed348e36ac99bdb1983412ad44c45abdc51
parent 26a058935af5cf99540d26358f677d09fdf09f4e
Author: nicole mikołajczyk <me@mkljczk.pl>
Date:   Sat, 29 Nov 2025 17:27:01 +0100

Merge branch 'scrubber-inline-quotes-mastodon' into 'develop'

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

See merge request pleroma/pleroma!4373

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"])