aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/html.ex
diff options
context:
space:
mode:
authorrinpatch <rinpatch@sdf.org>2019-06-14 14:34:42 +0300
committerrinpatch <rinpatch@sdf.org>2019-06-14 14:34:42 +0300
commitd0ebc0edf31945181a941dca891fce7b3d5637ab (patch)
tree0fecfd6bfda71a0f4bc2779c1c1a7d9289ba7da9 /lib/pleroma/html.ex
parentf045d1437cb9e1e53565c4f35be2c7ca3a9d73ff (diff)
downloadpleroma-d0ebc0edf31945181a941dca891fce7b3d5637ab.tar.gz
Fix hashtags being picked up by rich media parser
Closes #989
Diffstat (limited to 'lib/pleroma/html.ex')
-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 e5e78ee4f..8c226c944 100644
--- a/lib/pleroma/html.ex
+++ b/lib/pleroma/html.ex
@@ -89,7 +89,7 @@ defmodule Pleroma.HTML do
Cachex.fetch!(:scrubber_cache, key, fn _key ->
result =
content
- |> Floki.filter_out("a.mention")
+ |> Floki.filter_out("a.mention,a.hashtag")
|> Floki.attribute("a", "href")
|> Enum.at(0)