Skip to content
Snippets Groups Projects

TagPolicy: "mrf_tag:reject" to reject all user activities

Closed Alex Gleason requested to merge alexgleason/pleroma:tagpolicy-reject into develop
1 unresolved thread
Files
2
@@ -17,6 +17,7 @@ defmodule Pleroma.Web.ActivityPub.MRF.TagPolicy do
- `mrf_tag:sandbox`: Remove from public (local and federated) timelines
- `mrf_tag:disable-remote-subscription`: Reject non-local follow requests
- `mrf_tag:disable-any-subscription`: Reject any follow requests
- `mrf_tag:reject`: Reject all activities
"""
require Pleroma.Constants
@@ -142,6 +143,10 @@ defp process_tag(
defp process_tag("mrf_tag:disable-any-subscription", %{"type" => "Follow", "actor" => actor}),
do: {:reject, "[TagPolicy] Follow from #{actor} tagged with mrf_tag:disable-any-subscription"}
defp process_tag("mrf_tag:reject", _) do
{:reject, "[TagPolicy] User tagged with mrf_tag:reject"}
end
Please register or sign in to reply
defp process_tag(_, message), do: {:ok, message}
def filter_message(actor, message) do
Loading