projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[#2497] Fixed merge issue.
[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 a93ccf3862c0a520272cb49a797b9d75c6ecffe5..5ab9844ff63965b5d28dccd824c683a926cba157 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
19
Pleroma Authors <https://pleroma.social/>
+# Copyright © 2017-20
20
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