ForceMentionsInContent: wrap inline mentions with span tag

This commit is contained in:
Alex Gleason 2022-01-24 19:11:45 -06:00
parent 1bbc701a3a
commit d5644a52aa
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7
2 changed files with 2 additions and 2 deletions

View File

@ -63,7 +63,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.ForceMentionsInContent do
content =
if added_mentions != "",
do: added_mentions <> " " <> content,
do: "<span class=\"recipients-inline\">#{added_mentions} </span>" <> content,
else: content
{:ok, put_in(object["object"]["content"], content)}

View File

@ -56,7 +56,7 @@ defmodule Pleroma.HTML.Scrubber.Default do
Meta.allow_tag_with_these_attributes(:u, [])
Meta.allow_tag_with_these_attributes(:ul, [])
Meta.allow_tag_with_this_attribute_values(:span, "class", ["h-card"])
Meta.allow_tag_with_this_attribute_values(:span, "class", ["h-card", "recipients-inline"])
Meta.allow_tag_with_these_attributes(:span, [])
Meta.allow_tag_with_this_attribute_values(:code, "class", ["inline"])