From 7fc1c278c7eeb6bed602ae46b7f9432c0d4e566c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Fri, 16 Apr 2021 17:03:58 +0200 Subject: [PATCH] Filter out current user when emitting share notifications to groups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- lib/Notification/NotificationHelper.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/Notification/NotificationHelper.php b/lib/Notification/NotificationHelper.php index de4e51b6c..97b900c73 100644 --- a/lib/Notification/NotificationHelper.php +++ b/lib/Notification/NotificationHelper.php @@ -202,6 +202,9 @@ class NotificationHelper { return; } foreach ($group->getUsers() as $user) { + if ($user->getUID() === $this->currentUser) { + continue; + } $notification = $this->generateBoardShared($board, $user->getUID()); if ($markAsRead) { $this->notificationManager->markProcessed($notification);