tangled
alpha
login
or
join now
baileytownsend.dev
/
pds-dash-fork
16
fork
atom
A fork of pds-dash for selfhosted.social
16
fork
atom
overview
issues
pulls
pipelines
Fixed some non-critial errors
ari.express
11 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
<p>{post.text}</p>
19
{#if post.replyingDid}
20
<p>Replying to: {post.replyingDid}</p>
21
-
{/if}
22
{#if post.imagesCid}
23
<div id="imagesContainer">
24
{#each post.imagesCid as imageLink}
···
18
<p>{post.text}</p>
19
{#if post.replyingDid}
20
<p>Replying to: {post.replyingDid}</p>
21
+
{/if}
22
{#if post.imagesCid}
23
<div id="imagesContainer">
24
{#each post.imagesCid as imageLink}
+5
-2
src/lib/pdsfetch.ts
···
2
import "@atcute/bluesky/lexicons";
3
import type {
4
AppBskyActorDefs,
0
5
AppBskyFeedPost,
0
6
ComAtprotoRepoListRecords,
7
} from "@atcute/client/lexicons";
0
8
// import { ComAtprotoRepoListRecords.Record } from "@atcute/client/lexicons";
9
// import { AppBskyFeedPost } from "@atcute/client/lexicons";
10
// import { AppBskyActorDefs } from "@atcute/client/lexicons";
···
106
rkey: "self",
107
},
108
});
109
-
const value = data.value as AppBskyActorDefs.ProfileView;
110
const account: AccountMetadata = {
111
did: did,
112
displayName: value.displayName || "",
···
131
const fetchPosts = async (did: string) => {
132
const { data } = await rpc.get("com.atproto.repo.listRecords", {
133
params: {
134
-
repo: did,
135
collection: "app.bsky.feed.post",
136
limit: 5,
137
},
···
2
import "@atcute/bluesky/lexicons";
3
import type {
4
AppBskyActorDefs,
5
+
AppBskyActorProfile,
6
AppBskyFeedPost,
7
+
At,
8
ComAtprotoRepoListRecords,
9
} from "@atcute/client/lexicons";
10
+
import type App from "../App.svelte";
11
// import { ComAtprotoRepoListRecords.Record } from "@atcute/client/lexicons";
12
// import { AppBskyFeedPost } from "@atcute/client/lexicons";
13
// import { AppBskyActorDefs } from "@atcute/client/lexicons";
···
109
rkey: "self",
110
},
111
});
112
+
const value = data.value as AppBskyActorProfile.Record;
113
const account: AccountMetadata = {
114
did: did,
115
displayName: value.displayName || "",
···
134
const fetchPosts = async (did: string) => {
135
const { data } = await rpc.get("com.atproto.repo.listRecords", {
136
params: {
137
+
repo: did as At.Identifier,
138
collection: "app.bsky.feed.post",
139
limit: 5,
140
},