projects
/
akkoma
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'develop' into issue/1276
[akkoma]
/
lib
/
pleroma
/
web
/
activity_pub
/
mrf
/
noop_policy.ex
diff --git
a/lib/pleroma/web/activity_pub/mrf/noop_policy.ex
b/lib/pleroma/web/activity_pub/mrf/noop_policy.ex
index e26f60d26b603bc27e681d02ea965b83e6592111..878c5792532c3257a1182447b03991d7944a3ee9 100644
(file)
--- a/
lib/pleroma/web/activity_pub/mrf/noop_policy.ex
+++ b/
lib/pleroma/web/activity_pub/mrf/noop_policy.ex
@@
-1,8
+1,16
@@
+# Pleroma: A lightweight social networking server
+# Copyright © 2017-2019 Pleroma Authors <https://pleroma.social/>
+# SPDX-License-Identifier: AGPL-3.0-only
+
defmodule Pleroma.Web.ActivityPub.MRF.NoOpPolicy do
defmodule Pleroma.Web.ActivityPub.MRF.NoOpPolicy do
+ @moduledoc "Does nothing (lets the messages go through unmodified)"
@behaviour Pleroma.Web.ActivityPub.MRF
@impl true
def filter(object) do
{:ok, object}
end
@behaviour Pleroma.Web.ActivityPub.MRF
@impl true
def filter(object) do
{:ok, object}
end
+
+ @impl true
+ def describe, do: {:ok, %{}}
end
end