ForceBotUnlistedPolicy: fix to stop unlisting my posts >:(
This commit is contained in:
parent
8951be7710
commit
a4de79ced0
@ -10,7 +10,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.ForceBotUnlistedPolicy do
|
|||||||
require Pleroma.Constants
|
require Pleroma.Constants
|
||||||
|
|
||||||
defp check_by_actor_type(user), do: user.actor_type in ["Application", "Service"]
|
defp check_by_actor_type(user), do: user.actor_type in ["Application", "Service"]
|
||||||
defp check_by_nickname(user), do: Regex.match?(~r/bot@|ebooks@/i, user.nickname)
|
defp check_by_nickname(user), do: Regex.match?(~r/.bot@|ebooks@/i, user.nickname)
|
||||||
|
|
||||||
defp check_if_bot(user), do: check_by_actor_type(user) or check_by_nickname(user)
|
defp check_if_bot(user), do: check_by_actor_type(user) or check_by_nickname(user)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user