From 9b127ad0fc2e1d618f2726ba547f77f119007760 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 24 Jan 2021 13:49:23 +0000 Subject: [PATCH] Inverted conditions --- include/enotify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/enotify.php b/include/enotify.php index 270b41e24..95c61d640 100644 --- a/include/enotify.php +++ b/include/enotify.php @@ -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; }