tangled
alpha
login
or
join now
yoyle.city
/
skittr
6
fork
atom
this repo has no description
atproto
bluesky
typescript
express
6
fork
atom
overview
issues
3
pulls
pipelines
annotated the code a bit
lime360
2 months ago
67660307
0a602e3f
1/1
test.yml
success
21s
+15
2 changed files
expand all
collapse all
unified
split
src
lib
actor.ts
feed.ts
+13
src/lib/actor.ts
···
7
7
return response.data;
8
8
}
9
9
10
10
+
/*
11
11
+
might replace with this one
12
12
+
13
13
+
export async function getActor(agent: AtpAgent, did: string) {
14
14
+
const response = await agent.com.atproto.repo.getRecord({
15
15
+
repo: did,
16
16
+
collection: "app.bsky.actor.profile",
17
17
+
rkey: "self"
18
18
+
});
19
19
+
return response.data;
20
20
+
}
21
21
+
*/
22
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
3
+
// TODO: connect to feeds directly rather than using an existing appview
4
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,