tangled
alpha
login
or
join now
witchcraft.systems
/
pds-dash
15
fork
atom
this repo has no description
15
fork
atom
overview
issues
pulls
pipelines
Fixed some non-critial errors
ari.express
10 months ago
6628b3d0
fe96164f
verified
This commit was signed with the committer's
known signature
.
ari.express
SSH Key Fingerprint:
SHA256:j4xpQafvRcIH4rwZqM5aREIogWsCjyYohia7vH0+uZY=
+6
-3
2 changed files
expand all
collapse all
unified
split
src
lib
PostComponent.svelte
pdsfetch.ts
+1
-1
src/lib/PostComponent.svelte
···
18
18
<p>{post.text}</p>
19
19
{#if post.replyingDid}
20
20
<p>Replying to: {post.replyingDid}</p>
21
21
-
{/if}
21
21
+
{/if}
22
22
{#if post.imagesCid}
23
23
<div id="imagesContainer">
24
24
{#each post.imagesCid as imageLink}
+5
-2
src/lib/pdsfetch.ts
···
2
2
import "@atcute/bluesky/lexicons";
3
3
import type {
4
4
AppBskyActorDefs,
5
5
+
AppBskyActorProfile,
5
6
AppBskyFeedPost,
7
7
+
At,
6
8
ComAtprotoRepoListRecords,
7
9
} from "@atcute/client/lexicons";
10
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
109
-
const value = data.value as AppBskyActorDefs.ProfileView;
112
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
134
-
repo: did,
137
137
+
repo: did as At.Identifier,
135
138
collection: "app.bsky.feed.post",
136
139
limit: 5,
137
140
},