Revert "Merge branch 'feat/floki-fasthtml' into 'develop'"
This reverts merge request !2194
This commit is contained in:
parent
3fee859b60
commit
237b2068f9
9 changed files with 18 additions and 35 deletions
|
|
@ -17,7 +17,6 @@ defmodule Pleroma.Web.ActivityPub.MRF.AntiLinkSpamPolicy do
|
|||
# does the post contain links?
|
||||
defp contains_links?(%{"content" => content} = _object) do
|
||||
content
|
||||
|> Floki.parse_fragment!()
|
||||
|> Floki.filter_out("a.mention,a.hashtag,a[rel~=\"tag\"],a.zrl")
|
||||
|> Floki.attribute("a", "href")
|
||||
|> length() > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue