From 12d7c99f46e5e9be2a911573f2bdb9d5b91c8dec Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 13 Mar 2022 05:44:29 +0000 Subject: [PATCH] Don't send notifications for activities caused by the community contact --- src/Model/Post/UserNotification.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Model/Post/UserNotification.php b/src/Model/Post/UserNotification.php index 75fc003806..d9bd2256f2 100644 --- a/src/Model/Post/UserNotification.php +++ b/src/Model/Post/UserNotification.php @@ -193,6 +193,8 @@ class UserNotification $notification_type = $notification_type | self::TYPE_SHARED; self::insertNotificationByItem(self::TYPE_SHARED, $uid, $item); $notified = true; + } elseif ($author['contact-type'] == Contact::TYPE_COMMUNITY) { + return; } else { $notified = false; }