don't distribute group notices to inboxes for users who've blocked the author
This commit is contained in:
parent
73e45bbfd9
commit
1319002e15
|
@ -930,10 +930,13 @@ class Notice extends Memcached_DataObject
|
|||
$users = $group->getUserMembers();
|
||||
foreach ($users as $id) {
|
||||
if (!array_key_exists($id, $ni)) {
|
||||
$user = User::staticGet('id', $id);
|
||||
if (!$user->hasBlocked($notice->profile_id)) {
|
||||
$ni[$id] = NOTICE_INBOX_SOURCE_GROUP;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$recipients = $this->saveReplies();
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user