Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Dont group notifications that are an hour apart

+5
+5
src/state/models/notifications-view.ts
··· 8 8 9 9 const UNGROUPABLE_REASONS = ['trend', 'assertion'] 10 10 11 + const MS_60MIN = 1e3 * 60 * 60 12 + 11 13 export interface GroupedNotification extends ListNotifications.Notification { 12 14 additional?: ListNotifications.Notification[] 13 15 } ··· 344 346 ): GroupedNotification[] { 345 347 const items2: GroupedNotification[] = [] 346 348 for (const item of items) { 349 + const ts = +new Date(item.indexedAt) 347 350 let grouped = false 348 351 if (!UNGROUPABLE_REASONS.includes(item.reason)) { 349 352 for (const item2 of items2) { 353 + const ts2 = +new Date(item2.indexedAt) 350 354 if ( 355 + Math.abs(ts2 - ts) < MS_60MIN && 351 356 item.reason === item2.reason && 352 357 item.reasonSubject === item2.reasonSubject && 353 358 item.author.did !== item2.author.did