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());
}
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) {