···
-
app_bsky_allowlist = set([
'app.bsky.actor.profile',
'app.bsky.feed.generator',
···
'app.bsky.graph.starterpack',
'app.bsky.labeler.service',
'chat.bsky.actor.declaration',
-
other_allowlist = set([
-
'social.psky.feed.post',
-
'social.psky.chat.message',
-
'blue.zio.atfile.upload',
async def bsky_activity():
relay_url = 'wss://jetstream1.us-west.bsky.network/subscribe'
···
collection = payload['collection']
-
if collection not in app_bsky_allowlist | other_allowlist:
repo_update_time = datetime.now(timezone.utc)
···
'app.bsky.actor.profile',
'app.bsky.feed.generator',
···
'app.bsky.graph.starterpack',
'app.bsky.labeler.service',
'chat.bsky.actor.declaration',
+
'com.shinolabs.pinksea',
async def bsky_activity():
relay_url = 'wss://jetstream1.us-west.bsky.network/subscribe'
···
collection = payload['collection']
+
if not collection.startswith(app_bsky_allowlist + other_allowlist):
+
for prefix in other_allowlist:
+
if collection.startswith(prefix):
+
redis_pipe.incr('dev.edavis.atproto.collection.' + prefix.replace('.', '_'))
repo_update_time = datetime.now(timezone.utc)