grain.social is a photo sharing platform built on atproto. grain.social
atproto photography appview
57
fork

Configure Feed

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

delete favs when deleting gallery

+9
+9
main.tsx
··· 965 965 for (const item of galleryItems) { 966 966 await ctx.deleteRecord(item.uri); 967 967 } 968 + const { items: favs } = ctx.indexService.getRecords<WithBffMeta<Favorite>>( 969 + "social.grain.favorite", 970 + { 971 + where: [{ field: "subject", equals: uri }], 972 + }, 973 + ); 974 + for (const fav of favs) { 975 + await ctx.deleteRecord(fav.uri); 976 + } 968 977 } 969 978 970 979 function getGalleryFavs(galleryUri: string, ctx: BffContext) {