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

Configure Feed

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

at 1435ca2fd67aa9cd1493cb703390cc1ac84f3ad4 16 lines 937 B view raw
1#!/usr/bin/env bash 2 3# Helpful when running local-infra. Specify the repos you've created on a local pds instance. 4 5DB="grain.db" 6REPOS="did:plc:gdvspmipkels2qp43m4czqhp" 7COLLECTIONS="social.grain.gallery,social.grain.actor.profile,social.grain.photo,social.grain.favorite,social.grain.gallery.item,social.grain.graph.follow,social.grain.photo.exif,social.grain.comment" 8EXTERNAL_COLLECTIONS="app.bsky.actor.profile,app.bsky.graph.follow,sh.tangled.graph.follow,sh.tangled.actor.profile" 9COLLECTION_KEY_MAP='{"social.grain.favorite":["subject"],"social.grain.graph.follow":["subject"],"social.grain.gallery.item":["gallery","item"],"social.grain.photo.exif":["photo"],"social.grain.comment":["subject"]}' 10 11deno run -A --env=.env jsr:@bigmoves/bff-cli@0.3.0-beta.40 sync \ 12 --db="$DB" \ 13 --repos="$REPOS" \ 14 --collections="$COLLECTIONS" \ 15 --external-collections="$EXTERNAL_COLLECTIONS" \ 16 --collection-key-map="$COLLECTION_KEY_MAP"