this repo has no description
0
fork

Configure Feed

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

update pronouns and main

+9 -7
+3
src/constants.ts
··· 19 19 "shey/sheir/sher": "shey", 20 20 "voi/void": "voi", 21 21 "mew/mews": "mew", 22 + "paw/paws": "paw", 22 23 }; 23 24 24 25 export const URIs: Record<string, string> = { ··· 60 61 "voi/void", 61 62 "at://did:plc:wkoofae5uytcm7bjncmev6n6/app.bsky.feed.post/3kwueewr2p22j": 62 63 "mew/mews", 64 + "at://did:plc:wkoofae5uytcm7bjncmev6n6/app.bsky.feed.post/3kwukwwz4nt2j": 65 + "paw/paws", 63 66 }; 64 67 65 68 export const DID = process.env.DID ?? "";
+6 -7
src/main.ts
··· 22 22 }, 60000); 23 23 }); 24 24 25 - firehose.on("commit", (commit) => { 25 + firehose.on("commit", async (commit) => { 26 26 cursorSave = commit.seq; 27 - for (const op of commit.ops) { 28 - if (op.action === "delete") continue; 29 - if (AppBskyFeedLike.isRecord(op.record)) { 27 + commit.ops.forEach(async (op) => { 28 + if (op.action !== "delete" && AppBskyFeedLike.isRecord(op.record)) { 30 29 if ((op.record.subject.uri ?? "").includes(DID)) { 31 30 if ((op.record.subject.uri ?? "").includes("app.bsky.feed.post")) { 32 - label(agent, commit.repo, op.record.subject.uri).catch((err) => 33 - console.error(err), 31 + await label(agent, commit.repo, op.record.subject.uri).catch( 32 + (err) => console.error(err), 34 33 ); 35 34 } 36 35 } 37 36 } 38 - } 37 + }); 39 38 }); 40 39 41 40 firehose.start();