Ensure policies are fully loaded
This commit is contained in:
parent
1de2ecc40f
commit
a3cda22ff1
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||||
|
|
Loading…
Reference in a new issue