Hide like notifications from menu again
This commit is contained in:
parent
73c7b88fb2
commit
36e85b01c6
|
@ -87,7 +87,7 @@ class Ping extends BaseModule
|
||||||
|
|
||||||
if (local_user()) {
|
if (local_user()) {
|
||||||
if (DI::pConfig()->get(local_user(), 'system', 'detailed_notif')) {
|
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 {
|
} else {
|
||||||
$notifications = $this->notificationRepo->selectDigestForUser(local_user());
|
$notifications = $this->notificationRepo->selectDigestForUser(local_user());
|
||||||
}
|
}
|
||||||
|
|
|
@ -116,11 +116,12 @@ class Notification extends BaseRepository
|
||||||
SELECT MAX(`id`)
|
SELECT MAX(`id`)
|
||||||
FROM notification
|
FROM notification
|
||||||
WHERE uid = ?
|
WHERE uid = ?
|
||||||
|
AND vid != ?
|
||||||
GROUP BY IFNULL(`parent-uri-id`, `actor-id`)
|
GROUP BY IFNULL(`parent-uri-id`, `actor-id`)
|
||||||
)
|
)
|
||||||
ORDER BY `seen`, `id` DESC
|
ORDER BY `seen`, `id` DESC
|
||||||
LIMIT 50
|
LIMIT 50
|
||||||
", $uid);
|
", $uid, Verb::getID(\Friendica\Protocol\Activity::LIKE));
|
||||||
|
|
||||||
$Entities = new Collection\Notifications();
|
$Entities = new Collection\Notifications();
|
||||||
foreach ($rows as $fields) {
|
foreach ($rows as $fields) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user