Merge pull request #9522 from MrPetovan/bug/ap-blocked-followers
Prevent ActivityPub message transmission to blocked followers
This commit is contained in:
commit
61dcd62921
1 changed files with 3 additions and 2 deletions
|
@ -146,7 +146,8 @@ class Transmitter
|
||||||
'deleted' => false,
|
'deleted' => false,
|
||||||
'hidden' => false,
|
'hidden' => false,
|
||||||
'archive' => false,
|
'archive' => false,
|
||||||
'pending' => false
|
'pending' => false,
|
||||||
|
'blocked' => false,
|
||||||
];
|
];
|
||||||
$condition = DBA::buildCondition($parameters);
|
$condition = DBA::buildCondition($parameters);
|
||||||
|
|
||||||
|
@ -680,7 +681,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