Revert "Do not pass transient undo-y activities through MRF"

This reverts commit dcf58a3c53.
This commit is contained in:
Sam Therapy 2022-12-15 22:18:35 +01:00
parent a1c3526655
commit b460c3904a
Signed by: sam
GPG key ID: 4D8B07C18F31ACBD
2 changed files with 0 additions and 7 deletions

View file

@ -35,7 +35,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## Removed
- FollowBotPolicy
- Passing of undo/block into MRF
## Upgrade Notes
- If you have an old instance, you will probably want to run `mix pleroma.database prune_task` in the foreground to catch it up with the history of your instance.

View file

@ -63,12 +63,6 @@ defmodule Pleroma.Web.ActivityPub.MRF do
@required_description_keys [:key, :related_policy]
def filter_one(policy, %{"type" => type} = message)
when type in ["Undo", "Block", "Delete"] and
policy != Pleroma.Web.ActivityPub.MRF.SimplePolicy do
{:ok, message}
end
def filter_one(policy, message) do
should_plug_history? =
if function_exported?(policy, :history_awareness, 0) do