tangled
alpha
login
or
join now
danabra.mov
/
sidetrail
49
fork
atom
an app to share curated trails
sidetrail.app
atproto
nextjs
react
rsc
49
fork
atom
overview
issues
pulls
pipelines
checks
danabra.mov
3 months ago
f00e4fe5
6a5666bb
+4
-5
1 changed file
expand all
collapse all
unified
split
ingester
src
handler.ts
+4
-5
ingester/src/handler.ts
···
203
203
if (evt.kind === "identity") return;
204
204
if (evt.kind !== "commit") return;
205
205
206
206
+
const { commit } = evt;
207
207
+
const { collection, rkey } = commit;
208
208
+
if (!COLLECTIONS.includes(collection)) return;
209
209
+
206
210
// ATProto spec: commits from inactive accounts should be ignored
207
211
const [accountStatus] = await db
208
212
.select({ active: accounts.active })
···
213
217
if (accountStatus && !accountStatus.active) {
214
218
return;
215
219
}
216
216
-
217
217
-
const { commit } = evt;
218
218
-
const { collection, rkey } = commit;
219
219
-
220
220
-
if (!COLLECTIONS.includes(collection)) return;
221
220
222
221
const uri = `at://${evt.did}/${collection}/${rkey}`;
223
222