From: Michael Date: Sun, 13 Mar 2022 05:44:29 +0000 (+0000) Subject: Don't send notifications for activities caused by the community contact X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=12d7c99f46e5e9be2a911573f2bdb9d5b91c8dec;p=friendica.git Don't send notifications for activities caused by the community contact --- 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; }