From: Hypolite Petovan Date: Tue, 15 Mar 2022 02:25:10 +0000 (-0400) Subject: Hide like notifications from menu again X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=36e85b01c6429580e0caca78f7fa41573992fe6d;p=friendica.git Hide like notifications from menu again --- 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) {