From 4e7ab231adf852ff28a1abbc4e2013cab089670f Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 16 Dec 2020 09:54:09 +0100 Subject: [PATCH] Allow data-media-id attribute in img tags Signed-off-by: Thomas Citharel --- lib/service/formatter/default_scrubbler.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/service/formatter/default_scrubbler.ex b/lib/service/formatter/default_scrubbler.ex index 581ae79c5..e0f8ac707 100644 --- a/lib/service/formatter/default_scrubbler.ex +++ b/lib/service/formatter/default_scrubbler.ex @@ -61,7 +61,8 @@ defmodule Mobilizon.Service.Formatter.DefaultScrubbler do "height", "class", "title", - "alt" + "alt", + "data-media-id" ]) Meta.allow_tag_with_this_attribute_values(:span, "class", ["h-card", "mention"])