WIP PWA for Grain
0
fork

Configure Feed

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

feat: add viewer follow state to profile query

+6 -1
+6 -1
src/services/grain-api.js
··· 254 254 socialGrainGraphFollowByDid { 255 255 totalCount 256 256 } 257 + viewerSocialGrainGraphFollowViaSubject { 258 + uri 259 + } 257 260 socialGrainGalleryByDid(sortBy: [{ field: createdAt, direction: DESC }]) { 258 261 totalCount 259 262 edges { ··· 364 367 galleryCount: galleriesConnection?.totalCount || 0, 365 368 followerCount, 366 369 followingCount: profile?.socialGrainGraphFollowByDid?.totalCount || 0, 367 - galleries 370 + galleries, 371 + viewerIsFollowing: !!profile?.viewerSocialGrainGraphFollowViaSubject?.uri, 372 + viewerFollowUri: profile?.viewerSocialGrainGraphFollowViaSubject?.uri || null 368 373 }; 369 374 370 375 // Cache the profile data