WIP PWA for Grain
0
fork

Configure Feed

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

feat: add viewer favorite state to profile galleries query

+6 -1
+6 -1
src/services/grain-api.js
··· 283 283 socialGrainCommentViaSubject { 284 284 totalCount 285 285 } 286 + viewerSocialGrainFavoriteViaSubject { 287 + uri 288 + } 286 289 } 287 290 } 288 291 } ··· 331 334 photoCount: itemsConnection?.totalCount || photos.length, 332 335 thumbnailUrl: photos[0]?.url || '', 333 336 favoriteCount: node.socialGrainFavoriteViaSubject?.totalCount || 0, 334 - commentCount: node.socialGrainCommentViaSubject?.totalCount || 0 337 + commentCount: node.socialGrainCommentViaSubject?.totalCount || 0, 338 + viewerHasFavorited: !!node.viewerSocialGrainFavoriteViaSubject?.uri, 339 + viewerFavoriteUri: node.viewerSocialGrainFavoriteViaSubject?.uri || null 335 340 }; 336 341 }) || []; 337 342