]> git.mxchange.org Git - friendica.git/commitdiff
Prevent ActivityPub message transmission to blocked followers
authorHypolite Petovan <hypolite@mrpetovan.com>
Wed, 11 Nov 2020 07:48:22 +0000 (02:48 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Wed, 11 Nov 2020 07:52:23 +0000 (02:52 -0500)
src/Protocol/ActivityPub/Transmitter.php

index 750c7f625ded1be969e3d15e335f319912912363..1df2d3bc60db659bf816f3411c11fe3d30124a66 100644 (file)
@@ -680,7 +680,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];