]> git.mxchange.org Git - friendica.git/commitdiff
Don't send notifications for activities caused by the community contact
authorMichael <heluecht@pirati.ca>
Sun, 13 Mar 2022 05:44:29 +0000 (05:44 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 13 Mar 2022 05:44:29 +0000 (05:44 +0000)
src/Model/Post/UserNotification.php

index 75fc0038068d459a2c19374d6dd2c87320fe1fda..d9bd2256f2707270f6ffdf8ca0e55c49531d3390 100644 (file)
@@ -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;
                }