Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

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

Make notifications clickable (#8251)

authored by

Eric Bailey and committed by
GitHub
0278c7a0 a091def5

+10 -6
+5 -3
src/state/queries/notifications/types.ts
··· 1 1 import { 2 - AppBskyFeedDefs, 3 - AppBskyGraphDefs, 4 - AppBskyNotificationListNotifications, 2 + type AppBskyFeedDefs, 3 + type AppBskyGraphDefs, 4 + type AppBskyNotificationListNotifications, 5 5 } from '@atproto/api' 6 6 7 7 export type NotificationType = ··· 44 44 | 'quote' 45 45 | 'follow' 46 46 | 'feedgen-like' 47 + | 'verified' 48 + | 'unverified' 47 49 | 'unknown' 48 50 49 51 type FeedNotificationBase = {
+5 -3
src/view/com/notifications/NotificationFeedItem.tsx
··· 102 102 const urip = new AtUri(item.subjectUri) 103 103 return `/profile/${urip.host}/post/${urip.rkey}` 104 104 } 105 - } else if (item.type === 'follow') { 105 + } else if ( 106 + item.type === 'follow' || 107 + item.type === 'verified' || 108 + item.type === 'unverified' 109 + ) { 106 110 return makeProfileLink(item.notification.author) 107 111 } else if (item.type === 'reply') { 108 112 const urip = new AtUri(item.notification.uri) ··· 390 394 <StarterPack width={30} gradient="sky" /> 391 395 </View> 392 396 ) 393 - // @ts-ignore TODO 394 397 } else if (item.type === 'verified') { 395 398 a11yLabel = hasMultipleAuthors 396 399 ? _( ··· 416 419 <Trans>{firstAuthorLink} verified you</Trans> 417 420 ) 418 421 icon = <VerifiedCheck size="xl" /> 419 - // @ts-ignore TODO 420 422 } else if (item.type === 'unverified') { 421 423 a11yLabel = hasMultipleAuthors 422 424 ? _(