ForceBotUnlistedPolicy: fix to stop unlisting my posts >:(

This commit is contained in:
bot 2022-01-26 22:53:02 +00:00
parent 8951be7710
commit a4de79ced0
1 changed files with 1 additions and 1 deletions

View File

@ -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)