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 6ac7b0ec1818bd2bd8f589a3e882f91fa74fbc8b..378175205b6709c85de8a372bafc034acff64484 100644
(file)
--- a/
lib/pleroma/web/activity_pub/mrf/drop_policy.ex
+++ b/
lib/pleroma/web/activity_pub/mrf/drop_policy.ex
@@
-1,14
+1,18
@@
# Pleroma: A lightweight social networking server
# Pleroma: A lightweight social networking server
-# Copyright © 2017-20
18
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
21
Pleroma Authors <https://pleroma.social/>
# SPDX-License-Identifier: AGPL-3.0-only
defmodule Pleroma.Web.ActivityPub.MRF.DropPolicy do
require Logger
# SPDX-License-Identifier: AGPL-3.0-only
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
@behaviour Pleroma.Web.ActivityPub.MRF
@impl true
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