[READ ONLY MIRROR] Spark Social AppView Server github.com/sprksocial/server
atproto deno hono lexicon
5
fork

Configure Feed

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

fix(notifs): include subject for replies

+8 -4
+4 -2
hydration/index.ts
··· 669 669 const repostUris = collections.get(ids.SoSprkFeedRepost) ?? []; 670 670 const followUris = collections.get(ids.SoSprkGraphFollow) ?? []; 671 671 672 - // Collect subject URIs for like/repost notifications to hydrate their content 672 + // Collect subject URIs for like/repost/reply notifications to hydrate their content 673 673 const subjectPostUris: string[] = []; 674 674 const subjectReplyUris: string[] = []; 675 675 for (const notif of notifs) { 676 676 if ( 677 677 notif.reasonSubject && 678 - (notif.reason === "like" || notif.reason === "repost") 678 + (notif.reason === "like" || 679 + notif.reason === "repost" || 680 + notif.reason === "reply") 679 681 ) { 680 682 const subjectUri = new AtUri(notif.reasonSubject); 681 683 if (subjectUri.collection === ids.SoSprkFeedPost) {
+4 -2
views/index.ts
··· 1112 1112 : []; 1113 1113 const indexedAt = notif.sortAt; 1114 1114 1115 - // For like/repost notifications, include the subject record (post/reply) in the response 1115 + // For like/repost/reply notifications, include the subject record (post/reply) in the response 1116 1116 let recordWithSubject = recordInfo.record; 1117 1117 if ( 1118 - (notif.reason === "like" || notif.reason === "repost") && 1118 + (notif.reason === "like" || 1119 + notif.reason === "repost" || 1120 + notif.reason === "reply") && 1119 1121 notif.reasonSubject 1120 1122 ) { 1121 1123 const subjectUri = new AtUri(notif.reasonSubject);