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
def filter_one(policy, message) do
Code.ensure_loaded!(policy)
should_plug_history? =
if function_exported?(policy, :history_awareness, 0) do
policy.history_awareness()