-
- def validate_block_acceptance(cng) do
- actor = get_field(cng, :actor) |> User.get_cached_by_ap_id()
-
- if actor.local || Pleroma.Config.get([:activitypub, :unfollow_blocked], true) do
- cng
- else
- cng
- |> add_error(:actor, "Not accepting remote blocks")
- end
- end