]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #9522 from MrPetovan/bug/ap-blocked-followers
authorMichael Vogel <icarus@dabo.de>
Wed, 11 Nov 2020 14:28:04 +0000 (15:28 +0100)
committerGitHub <noreply@github.com>
Wed, 11 Nov 2020 14:28:04 +0000 (15:28 +0100)
Prevent ActivityPub message transmission to blocked followers

src/Protocol/ActivityPub/Transmitter.php

index 750c7f625ded1be969e3d15e335f319912912363..6ac55dc12317946ca22392cc9a9c3941634cb18c 100644 (file)
@@ -146,7 +146,8 @@ class Transmitter
                        'deleted' => false,
                        'hidden' => false,
                        'archive' => false,
-                       'pending' => false
+                       'pending' => false,
+                       'blocked' => false,
                ];
                $condition = DBA::buildCondition($parameters);
 
@@ -680,7 +681,7 @@ class Transmitter
                        $networks = [Protocol::ACTIVITYPUB, Protocol::OSTATUS];
                }
 
-               $condition = ['uid' => $uid, 'archive' => false, 'pending' => false];
+               $condition = ['uid' => $uid, 'archive' => false, 'pending' => false, 'blocked' => false];
 
                if (!empty($uid)) {
                        $condition['rel'] = [Contact::FOLLOWER, Contact::FRIEND];