Prevent ActivityPub message transmission to blocked followers
This commit is contained in:
parent
7fcaa1f239
commit
6b8c8b03c6
|
@ -680,7 +680,7 @@ class Transmitter
|
||||||
$networks = [Protocol::ACTIVITYPUB, Protocol::OSTATUS];
|
$networks = [Protocol::ACTIVITYPUB, Protocol::OSTATUS];
|
||||||
}
|
}
|
||||||
|
|
||||||
$condition = ['uid' => $uid, 'archive' => false, 'pending' => false];
|
$condition = ['uid' => $uid, 'archive' => false, 'pending' => false, 'blocked' => false];
|
||||||
|
|
||||||
if (!empty($uid)) {
|
if (!empty($uid)) {
|
||||||
$condition['rel'] = [Contact::FOLLOWER, Contact::FRIEND];
|
$condition['rel'] = [Contact::FOLLOWER, Contact::FRIEND];
|
||||||
|
|
Loading…
Reference in a new issue