projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'feature/1584-client-captcha-options' 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..5ab9844ff63965b5d28dccd824c683a926cba157 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-2020 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