Verified Commit d5644a52 authored by Alex Gleason's avatar Alex Gleason
Browse files

ForceMentionsInContent: wrap inline mentions with span tag

parent 1bbc701a
Pipeline #38856 failed with stages
in 9 minutes and 32 seconds
......@@ -63,7 +63,7 @@ def filter(%{"type" => "Create", "object" => %{"type" => "Note", "to" => to}} =
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)}
......
......@@ -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"])
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment