Ensure policies are fully loaded

This commit is contained in:
FloatingGhost 2023-08-01 12:03:24 +01:00
parent 1de2ecc40f
commit a3cda22ff1

View file

@ -70,6 +70,8 @@ defmodule Pleroma.Web.ActivityPub.MRF do
end end
def filter_one(policy, message) do def filter_one(policy, message) do
Code.ensure_loaded!(policy)
should_plug_history? = should_plug_history? =
if function_exported?(policy, :history_awareness, 0) do if function_exported?(policy, :history_awareness, 0) do
policy.history_awareness() policy.history_awareness()