projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: fix up nodeinfo tests
[akkoma]
/
lib
/
pleroma
/
web
/
activity_pub
/
mrf
/
anti_followbot_policy.ex
diff --git
a/lib/pleroma/web/activity_pub/mrf/anti_followbot_policy.ex
b/lib/pleroma/web/activity_pub/mrf/anti_followbot_policy.ex
index 34665a3a6999491b1ff3847bab127031e5f513c8..ad2d9bf5411b83cc1c5886afc63175134ee958eb 100644
(file)
--- a/
lib/pleroma/web/activity_pub/mrf/anti_followbot_policy.ex
+++ b/
lib/pleroma/web/activity_pub/mrf/anti_followbot_policy.ex
@@
-5,6
+5,8
@@
defmodule Pleroma.Web.ActivityPub.MRF.AntiFollowbotPolicy do
alias Pleroma.User
defmodule Pleroma.Web.ActivityPub.MRF.AntiFollowbotPolicy do
alias Pleroma.User
+ @moduledoc "Prevent followbots from following with a bit of heuristic"
+
@behaviour Pleroma.Web.ActivityPub.MRF
# XXX: this should become User.normalize_by_ap_id() or similar, really.
@behaviour Pleroma.Web.ActivityPub.MRF
# XXX: this should become User.normalize_by_ap_id() or similar, really.
@@
-60,4
+62,7
@@
defmodule Pleroma.Web.ActivityPub.MRF.AntiFollowbotPolicy do
@impl true
def filter(message), do: {:ok, message}
@impl true
def filter(message), do: {:ok, message}
+
+ @impl true
+ def describe(), do: {:ok, %{}}
end
end