projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'fix/missing-own_votes' into 'develop'
[akkoma]
/
lib
/
pleroma
/
web
/
activity_pub
/
mrf
/
drop_policy.ex
diff --git
a/lib/pleroma/web/activity_pub/mrf/drop_policy.ex
b/lib/pleroma/web/activity_pub/mrf/drop_policy.ex
index 4333bca28b7c61225433498b323959ea2dd134ee..378175205b6709c85de8a372bafc034acff64484 100644
(file)
--- a/
lib/pleroma/web/activity_pub/mrf/drop_policy.ex
+++ b/
lib/pleroma/web/activity_pub/mrf/drop_policy.ex
@@
-1,8
+1,18
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2021 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Web.ActivityPub.MRF.DropPolicy do
require Logger
defmodule Pleroma.Web.ActivityPub.MRF.DropPolicy do
require Logger
+ @moduledoc "Drop and log everything received"
+ @behaviour Pleroma.Web.ActivityPub.MRF
+ @impl true
def filter(object) do
def filter(object) do
- Logger.
info
("REJECTING #{inspect(object)}")
+ Logger.
debug
("REJECTING #{inspect(object)}")
{:reject, object}
end
{:reject, object}
end
+
+ @impl true
+ def describe, do: {:ok, %{}}
end
end