Fix AudioVideoValidator markdown
authorAlex Gleason <alex@alexgleason.me>
Wed, 14 Oct 2020 00:16:57 +0000 (19:16 -0500)
committerMark Felder <feld@FreeBSD.org>
Fri, 11 Dec 2020 23:22:54 +0000 (17:22 -0600)
lib/pleroma/web/activity_pub/object_validators/audio_video_validator.ex

index 9b38aa4c244f8f2fc7d6175f8becb9c5044fc513..fa3e2c0267b1987f8504ec6b2282a5b9e53a88c9 100644 (file)
@@ -96,6 +96,7 @@ defmodule Pleroma.Web.ActivityPub.ObjectValidators.AudioVideoValidator do
     content =
       content
       |> Pleroma.Formatter.markdown_to_html()
+      |> Pleroma.Formatter.minify("text/html")
       |> Pleroma.HTML.filter_tags()
 
     Map.put(data, "content", content)