Standardize @behaviour usage in MRFs
authorMark Felder <feld@FreeBSD.org>
Fri, 14 Feb 2020 17:02:24 +0000 (11:02 -0600)
committerMark Felder <feld@FreeBSD.org>
Fri, 14 Feb 2020 17:02:24 +0000 (11:02 -0600)
lib/pleroma/web/activity_pub/mrf/object_age_policy.ex
lib/pleroma/web/activity_pub/mrf/simple_policy.ex
lib/pleroma/web/activity_pub/mrf/subchain_policy.ex

index 8b36c10215f4759214627b31a1f718f4c729faf6..788508349e127fb773ef02a43accd645043ff349 100644 (file)
@@ -5,12 +5,11 @@
 defmodule Pleroma.Web.ActivityPub.MRF.ObjectAgePolicy do
   alias Pleroma.Config
   alias Pleroma.User
-  alias Pleroma.Web.ActivityPub.MRF
 
   require Pleroma.Constants
 
   @moduledoc "Filter activities depending on their age"
-  @behaviour MRF
+  @behaviour Pleroma.Web.ActivityPub.MRF
 
   defp check_date(%{"published" => published} = message) do
     with %DateTime{} = now <- DateTime.utc_now(),
index 8e53296e76d6cf5c6d9a83a85dabe2174e5dd728..b94c3c78aebe45ee63782d21e1e71b30e2ec0dc8 100644 (file)
@@ -6,7 +6,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.SimplePolicy do
   alias Pleroma.User
   alias Pleroma.Web.ActivityPub.MRF
   @moduledoc "Filter activities depending on their origin instance"
-  @behaviour MRF
+  @behaviour Pleroma.Web.ActivityPub.MRF
 
   require Pleroma.Constants
 
index 566c1e191a4076bebd0d34a41681fa11246ed83f..77ffd1bb9d0262fe818865b04ff8a3668359af11 100644 (file)
@@ -8,7 +8,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.SubchainPolicy do
 
   require Logger
 
-  @behaviour MRF
+  @behaviour Pleroma.Web.ActivityPub.MRF
 
   defp lookup_subchain(actor) do
     with matches <- Config.get([:mrf_subchain, :match_actor]),