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()