Merge pull request #9522 from MrPetovan/bug/ap-blocked-followers
Prevent ActivityPub message transmission to blocked followers
This commit is contained in:
commit
61dcd62921
|
@ -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];
|
||||
|
|
Loading…
Reference in New Issue
Block a user