aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma
diff options
context:
space:
mode:
authorlain <lain@soykaf.club>2019-11-29 10:10:30 +0000
committerlain <lain@soykaf.club>2019-11-29 10:10:30 +0000
commita990374e80ece3d28ae23f603bd5e301886e6a0c (patch)
tree4a9eaf861935640a85daac7d25d7e2d1976be788 /lib/pleroma
parentd7b40dd4ba5bf3890be8a8b69d5aff84f5ffc5d2 (diff)
parenta98cda77580ead154dd2cb020c6d4ebc1e719d86 (diff)
downloadpleroma-a990374e80ece3d28ae23f603bd5e301886e6a0c.tar.gz
Merge branch 'fix/extract_first_external_url' into 'develop'
Fix Pleroma.HTML.extract_first_external_url/2 Closes #1451 See merge request pleroma/pleroma!2024
Diffstat (limited to 'lib/pleroma')
-rw-r--r--lib/pleroma/html.ex1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/pleroma/html.ex b/lib/pleroma/html.ex
index 997e965f0..4acd46253 100644
--- a/lib/pleroma/html.ex
+++ b/lib/pleroma/html.ex
@@ -91,6 +91,7 @@ defmodule Pleroma.HTML do
Cachex.fetch!(:scrubber_cache, key, fn _key ->
result =
content
+ |> HtmlEntities.decode()
|> Floki.filter_out("a.mention,a.hashtag,a[rel~=\"tag\"]")
|> Floki.attribute("a", "href")
|> Enum.at(0)