diff options
author | Egor Kislitsyn <egor@kislitsyn.com> | 2019-11-29 15:49:35 +0700 |
---|---|---|
committer | Egor Kislitsyn <egor@kislitsyn.com> | 2019-11-29 15:49:35 +0700 |
commit | a98cda77580ead154dd2cb020c6d4ebc1e719d86 (patch) | |
tree | 4a9eaf861935640a85daac7d25d7e2d1976be788 /lib | |
parent | d7b40dd4ba5bf3890be8a8b69d5aff84f5ffc5d2 (diff) | |
download | pleroma-a98cda77580ead154dd2cb020c6d4ebc1e719d86.tar.gz |
Fix Pleroma.HTML.extract_first_external_url/2
Diffstat (limited to 'lib')
-rw-r--r-- | lib/pleroma/html.ex | 1 |
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) |