From 36e85b01c6429580e0caca78f7fa41573992fe6d Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Mon, 14 Mar 2022 22:25:10 -0400 Subject: [PATCH] Hide like notifications from menu again --- src/Module/Notifications/Ping.php | 2 +- src/Navigation/Notifications/Repository/Notification.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Module/Notifications/Ping.php b/src/Module/Notifications/Ping.php index c2c0c2c674..d97fb27fdf 100644 --- a/src/Module/Notifications/Ping.php +++ b/src/Module/Notifications/Ping.php @@ -87,7 +87,7 @@ class Ping extends BaseModule if (local_user()) { if (DI::pConfig()->get(local_user(), 'system', 'detailed_notif')) { - $notifications = $this->notificationRepo->selectForUser(local_user(), [], ['limit' => 50]); + $notifications = $this->notificationRepo->selectForUser(local_user(), ['`vid` != ?', Verb::getID(\Friendica\Protocol\Activity::LIKE)], ['limit' => 50]); } else { $notifications = $this->notificationRepo->selectDigestForUser(local_user()); } diff --git a/src/Navigation/Notifications/Repository/Notification.php b/src/Navigation/Notifications/Repository/Notification.php index 290845645a..60ac82ae31 100644 --- a/src/Navigation/Notifications/Repository/Notification.php +++ b/src/Navigation/Notifications/Repository/Notification.php @@ -116,11 +116,12 @@ class Notification extends BaseRepository SELECT MAX(`id`) FROM notification WHERE uid = ? + AND vid != ? GROUP BY IFNULL(`parent-uri-id`, `actor-id`) ) ORDER BY `seen`, `id` DESC LIMIT 50 - ", $uid); + ", $uid, Verb::getID(\Friendica\Protocol\Activity::LIKE)); $Entities = new Collection\Notifications(); foreach ($rows as $fields) { -- 2.39.5