aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Strizhakov <alex.strizhakov@gmail.com>2020-06-29 15:25:57 +0300
committerAlexander Strizhakov <alex.strizhakov@gmail.com>2020-06-29 15:25:57 +0300
commit6512ef6879a5f857f02479da1bad7242e916d918 (patch)
treec187ddd7fa4622ec39af42da2bc31d0562e23617 /lib
parent577da132da692a205bd8f3b454db8f9cf235a610 (diff)
downloadpleroma-6512ef6879a5f857f02479da1bad7242e916d918.tar.gz
excluding attachment links from RichMedia
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/html.ex2
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)