1
0
Fork 0

Don't send notifications for activities caused by the community contact

This commit is contained in:
Michael 2022-03-13 05:44:29 +00:00
parent 9e3dbfab3e
commit 12d7c99f46

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;
} }