Merge pull request #11326 from annando/notifications

Don't send notifications for activities caused by the community contact
This commit is contained in:
Tobias Diekershoff 2022-03-13 08:14:28 +01:00 committed by GitHub
commit 5db3e02bbd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -193,6 +193,8 @@ class UserNotification
$notification_type = $notification_type | self::TYPE_SHARED; $notification_type = $notification_type | self::TYPE_SHARED;
self::insertNotificationByItem(self::TYPE_SHARED, $uid, $item); self::insertNotificationByItem(self::TYPE_SHARED, $uid, $item);
$notified = true; $notified = true;
} elseif ($author['contact-type'] == Contact::TYPE_COMMUNITY) {
return;
} else { } else {
$notified = false; $notified = false;
} }