fix: always consider report content as text

Report content was used as HTML in front-end and e-mails but wasn't sanitized as such.

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel
2023-12-06 11:05:56 +01:00
parent ded59bec27
commit ffff379d47
5 changed files with 49 additions and 8 deletions

View File

@@ -60,6 +60,7 @@ defmodule Mobilizon.Federation.ActivityStream.Converter.Flag do
"actor" => Relay.get_actor().url,
"id" => report.url,
"content" => report.content,
"mediaType" => "text/plain",
"object" => object
}
end