Fixed some non-critial errors
This commit is contained in:
parent
fe96164f4e
commit
6628b3d0df
2 changed files with 6 additions and 3 deletions
|
@ -2,9 +2,12 @@ import { simpleFetchHandler, XRPC } from "@atcute/client";
|
||||||
import "@atcute/bluesky/lexicons";
|
import "@atcute/bluesky/lexicons";
|
||||||
import type {
|
import type {
|
||||||
AppBskyActorDefs,
|
AppBskyActorDefs,
|
||||||
|
AppBskyActorProfile,
|
||||||
AppBskyFeedPost,
|
AppBskyFeedPost,
|
||||||
|
At,
|
||||||
ComAtprotoRepoListRecords,
|
ComAtprotoRepoListRecords,
|
||||||
} from "@atcute/client/lexicons";
|
} from "@atcute/client/lexicons";
|
||||||
|
import type App from "../App.svelte";
|
||||||
// import { ComAtprotoRepoListRecords.Record } from "@atcute/client/lexicons";
|
// import { ComAtprotoRepoListRecords.Record } from "@atcute/client/lexicons";
|
||||||
// import { AppBskyFeedPost } from "@atcute/client/lexicons";
|
// import { AppBskyFeedPost } from "@atcute/client/lexicons";
|
||||||
// import { AppBskyActorDefs } from "@atcute/client/lexicons";
|
// import { AppBskyActorDefs } from "@atcute/client/lexicons";
|
||||||
|
@ -106,7 +109,7 @@ const getAccountMetadata = async (did: `did:${string}:${string}`) => {
|
||||||
rkey: "self",
|
rkey: "self",
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
const value = data.value as AppBskyActorDefs.ProfileView;
|
const value = data.value as AppBskyActorProfile.Record;
|
||||||
const account: AccountMetadata = {
|
const account: AccountMetadata = {
|
||||||
did: did,
|
did: did,
|
||||||
displayName: value.displayName || "",
|
displayName: value.displayName || "",
|
||||||
|
@ -131,7 +134,7 @@ const getAllMetadataFromPds = async () => {
|
||||||
const fetchPosts = async (did: string) => {
|
const fetchPosts = async (did: string) => {
|
||||||
const { data } = await rpc.get("com.atproto.repo.listRecords", {
|
const { data } = await rpc.get("com.atproto.repo.listRecords", {
|
||||||
params: {
|
params: {
|
||||||
repo: did,
|
repo: did as At.Identifier,
|
||||||
collection: "app.bsky.feed.post",
|
collection: "app.bsky.feed.post",
|
||||||
limit: 5,
|
limit: 5,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue