diff options
author | lain <lain@soykaf.club> | 2020-06-29 12:44:58 +0000 |
---|---|---|
committer | lain <lain@soykaf.club> | 2020-06-29 12:44:58 +0000 |
commit | 07ff2d62f4d6d0b449ef71423c1c71859406f9ea (patch) | |
tree | a1b66231db7187a8a9c9ce606277fb7a5b06a190 /lib | |
parent | 651f269568cb7e54cd96d8a0d8ea3533f77e9a3a (diff) | |
parent | 6512ef6879a5f857f02479da1bad7242e916d918 (diff) | |
download | pleroma-07ff2d62f4d6d0b449ef71423c1c71859406f9ea.tar.gz pleroma-07ff2d62f4d6d0b449ef71423c1c71859406f9ea.zip |
Merge branch 'rich-media-parser-exclude-attachment-links' into 'develop'
excluding attachment links from RichMedia
See merge request pleroma/pleroma!2702
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/html.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/html.ex b/lib/pleroma/html.ex index d78c5f202..dc1b9b840 100644 --- a/lib/pleroma/html.ex +++ b/lib/pleroma/html.ex @@ -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) |