]> git.mxchange.org Git - friendica.git/commitdiff
Hide like notifications from menu again
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 15 Mar 2022 02:25:10 +0000 (22:25 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 15 Mar 2022 02:56:46 +0000 (22:56 -0400)
src/Module/Notifications/Ping.php
src/Navigation/Notifications/Repository/Notification.php

index c2c0c2c67450b0d4f1a4bbd8dd41d11272cc91ef..d97fb27fdfced63f7f852b47c3cd93f5e7e16540 100644 (file)
@@ -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());
                        }
index 290845645a508e3dbf157f6fe6195b2b39ef8cec..60ac82ae31817c1faa5fc050ceace9b750134b04 100644 (file)
@@ -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) {