Merge branch 'develop' into activation-meta
[akkoma] / lib / pleroma / html.ex
index d78c5f2025ced17c45649393954cc164841dd8d2..dc1b9b840c006694b365cfea71eb288461fc5cac 100644 (file)
@@ -109,7 +109,7 @@ defmodule Pleroma.HTML do
       result =
         content
         |> Floki.parse_fragment!()
-        |> Floki.filter_out("a.mention,a.hashtag,a[rel~=\"tag\"]")
+        |> Floki.filter_out("a.mention,a.hashtag,a.attachment,a[rel~=\"tag\"]")
         |> Floki.attribute("a", "href")
         |> Enum.at(0)