A fork of pds-dash for selfhosted.social

Fixed some non-critial errors

ari.express 6628b3d0 fe96164f

verified
+6 -3
+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, 5 AppBskyFeedPost, 6 ComAtprotoRepoListRecords, 7 } from "@atcute/client/lexicons"; 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 },