Inverted conditions

2022.09-rc
Michael 2021-01-24 13:49:23 +00:00
rodzic 0cd02631ce
commit 9b127ad0fc
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -624,7 +624,7 @@ function check_item_notification($itemid, $uid, $notification_type) {
return false;
}
if (DI::pConfig()->get(local_user(), 'system', 'notify_ignored', true) && Contact\User::isIgnored($item['author-id'], $uid)) {
if (!DI::pConfig()->get(local_user(), 'system', 'notify_ignored', true) && Contact\User::isIgnored($item['author-id'], $uid)) {
Logger::info('Author is ignored, dropping notification', ['cid' => $item['author-id'], 'uid' => $uid]);
return false;
}