Fix Pleroma.HTML.extract_first_external_url/2
This commit is contained in:
parent
d7b40dd4ba
commit
a98cda7758
2 changed files with 12 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue