From 1b3623f9c34f9fabd1566532cf181988e8c2fbb4 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 30 May 2025 01:02:29 +0300 Subject: [PATCH 1/3] Make via-repost notifs groupable --- src/state/queries/notifications/util.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/state/queries/notifications/util.ts b/src/state/queries/notifications/util.ts index 569fbbd0fdb..aac6d680d39 100644 --- a/src/state/queries/notifications/util.ts +++ b/src/state/queries/notifications/util.ts @@ -22,7 +22,13 @@ import { type NotificationType, } from './types' -const GROUPABLE_REASONS = ['like', 'repost', 'follow'] +const GROUPABLE_REASONS = [ + 'like', + 'repost', + 'follow', + 'like-via-repost', + 'repost-via-repost' +] const MS_1HR = 1e3 * 60 * 60 const MS_2DAY = MS_1HR * 48 From cbb806066a934a37ca0f59cb2c023c3a38848b27 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 30 May 2025 01:11:34 +0300 Subject: [PATCH 2/3] try and fix prettier by hand --- src/state/queries/notifications/util.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/state/queries/notifications/util.ts b/src/state/queries/notifications/util.ts index aac6d680d39..7de85024a0d 100644 --- a/src/state/queries/notifications/util.ts +++ b/src/state/queries/notifications/util.ts @@ -22,13 +22,7 @@ import { type NotificationType, } from './types' -const GROUPABLE_REASONS = [ - 'like', - 'repost', - 'follow', - 'like-via-repost', - 'repost-via-repost' -] +const GROUPABLE_REASONS = ['like', 'repost', 'follow', 'like-via-repost', 'repost-via-repost'] const MS_1HR = 1e3 * 60 * 60 const MS_2DAY = MS_1HR * 48 From a871dd23f55302a07620dd051bf757354a22a5ba Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Fri, 30 May 2025 01:32:36 +0300 Subject: [PATCH 3/3] make prettier happy Co-authored-by: surfdude29 <149612116+surfdude29@users.noreply.github.com> --- src/state/queries/notifications/util.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/state/queries/notifications/util.ts b/src/state/queries/notifications/util.ts index 7de85024a0d..007f65cc73c 100644 --- a/src/state/queries/notifications/util.ts +++ b/src/state/queries/notifications/util.ts @@ -22,7 +22,13 @@ import { type NotificationType, } from './types' -const GROUPABLE_REASONS = ['like', 'repost', 'follow', 'like-via-repost', 'repost-via-repost'] +const GROUPABLE_REASONS = [ + 'like', + 'repost', + 'follow', + 'like-via-repost', + 'repost-via-repost', +] const MS_1HR = 1e3 * 60 * 60 const MS_2DAY = MS_1HR * 48