mirror of
https://github.com/cheeaun/phanpy.git
synced 2025-03-14 04:08:32 +03:00
Disable grouping for follow requests
This commit is contained in:
parent
f9794c1cd5
commit
11d74b3258
1 changed files with 3 additions and 1 deletions
|
@ -460,7 +460,9 @@ function groupNotifications(notifications) {
|
|||
const date = new Date(createdAt).toLocaleDateString();
|
||||
const key = `${status?.id}-${type}-${date}`;
|
||||
const mappedNotification = notificationsMap[key];
|
||||
if (mappedNotification?.account) {
|
||||
if (type === 'follow_request') {
|
||||
cleanNotifications[j++] = notification;
|
||||
} else if (mappedNotification?.account) {
|
||||
mappedNotification._accounts.push(account);
|
||||
} else {
|
||||
let n = (notificationsMap[key] = {
|
||||
|
|
Loading…
Add table
Reference in a new issue