Merge branch 'openapi/admin/reports' into 'develop'
[akkoma] / lib / pleroma / web / activity_pub / activity_pub.ex
index a38f9a3c8a101baa4c5d6cc5f3e165a852386dd4..958f3e5afd2b7024d2b0581ebcc79977ae62a402 100644 (file)
@@ -936,6 +936,12 @@ defmodule Pleroma.Web.ActivityPub.ActivityPub do
       [activity, object: o] in query,
       where: fragment("not (? = ANY(?))", activity.actor, ^blocked_ap_ids),
       where: fragment("not (? && ?)", activity.recipients, ^blocked_ap_ids),
+      where:
+        fragment(
+          "recipients_contain_blocked_domains(?, ?) = false",
+          activity.recipients,
+          ^domain_blocks
+        ),
       where:
         fragment(
           "not (?->>'type' = 'Announce' and ?->'to' \\?| ?)",