this repo has no description
atproto bluesky typescript express

annotated the code a bit

Changed files
+15
src
+13
src/lib/actor.ts
··· 7 7 return response.data; 8 8 } 9 9 10 + /* 11 + might replace with this one 12 + 13 + export async function getActor(agent: AtpAgent, did: string) { 14 + const response = await agent.com.atproto.repo.getRecord({ 15 + repo: did, 16 + collection: "app.bsky.actor.profile", 17 + rkey: "self" 18 + }); 19 + return response.data; 20 + } 21 + */ 22 + 10 23 export async function getActorDid(agent: AtpAgent, handle: string) { 11 24 if (handle.startsWith("did:")) { 12 25 return handle;
+2
src/lib/feed.ts
··· 1 1 import { AtpAgent } from "@atproto/api"; 2 2 3 + // TODO: connect to feeds directly rather than using an existing appview 4 + 3 5 export async function getFeed(agent: AtpAgent, did: string, record: string, cursor?: string) { 4 6 const response = await agent.app.bsky.feed.getFeed({ 5 7 feed: "at://" + did + "/app.bsky.feed.generator/" + record,