From a3cda22ff1f558c0f18e09a801388c12c0724a6a Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Tue, 1 Aug 2023 12:03:24 +0100 Subject: [PATCH] Ensure policies are fully loaded --- lib/pleroma/web/activity_pub/mrf.ex | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/pleroma/web/activity_pub/mrf.ex b/lib/pleroma/web/activity_pub/mrf.ex index c87f8b6b0..d03568444 100644 --- a/lib/pleroma/web/activity_pub/mrf.ex +++ b/lib/pleroma/web/activity_pub/mrf.ex @@ -70,6 +70,8 @@ def filter_one(policy, %{"type" => type} = message) end def filter_one(policy, message) do + Code.ensure_loaded!(policy) + should_plug_history? = if function_exported?(policy, :history_awareness, 0) do policy.history_awareness()