+1
-1
src/lib/PostComponent.svelte
+1
-1
src/lib/PostComponent.svelte
+5
-2
src/lib/pdsfetch.ts
+5
-2
src/lib/pdsfetch.ts
···
2
2
import "@atcute/bluesky/lexicons";
3
3
import type {
4
4
AppBskyActorDefs,
5
+
AppBskyActorProfile,
5
6
AppBskyFeedPost,
7
+
At,
6
8
ComAtprotoRepoListRecords,
7
9
} from "@atcute/client/lexicons";
10
+
import type App from "../App.svelte";
8
11
// import { ComAtprotoRepoListRecords.Record } from "@atcute/client/lexicons";
9
12
// import { AppBskyFeedPost } from "@atcute/client/lexicons";
10
13
// import { AppBskyActorDefs } from "@atcute/client/lexicons";
···
106
109
rkey: "self",
107
110
},
108
111
});
109
-
const value = data.value as AppBskyActorDefs.ProfileView;
112
+
const value = data.value as AppBskyActorProfile.Record;
110
113
const account: AccountMetadata = {
111
114
did: did,
112
115
displayName: value.displayName || "",
···
131
134
const fetchPosts = async (did: string) => {
132
135
const { data } = await rpc.get("com.atproto.repo.listRecords", {
133
136
params: {
134
-
repo: did,
137
+
repo: did as At.Identifier,
135
138
collection: "app.bsky.feed.post",
136
139
limit: 5,
137
140
},