Prevent ActivityPub message transmission to blocked followers

This commit is contained in:
Hypolite Petovan 2020-11-11 02:48:22 -05:00
parent 7fcaa1f239
commit 6b8c8b03c6

View 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];