commit: f922f5ed2b263fc983ed8fcb42e2fc6e7aa71434
parent 3ae928f3fc3e34b918e15ae05e84bdee1b6c1a9f
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date: Fri, 24 Mar 2023 09:09:58 +0100
MRF.DropPolicy: Add id_filter/1
Diffstat:
1 file changed, 6 insertions(+), 0 deletions(-)
diff --git a/lib/pleroma/web/activity_pub/mrf/drop_policy.ex b/lib/pleroma/web/activity_pub/mrf/drop_policy.ex
@@ -14,5 +14,11 @@ defmodule Pleroma.Web.ActivityPub.MRF.DropPolicy do
end
@impl true
+ def id_filter(id) do
+ Logger.debug("REJECTING #{id}")
+ false
+ end
+
+ @impl true
def describe, do: {:ok, %{}}
end