···1515 } from '$lib/state.svelte';
1616 import Icon from '@iconify/svelte';
1717 import { buildThreads, filterThreads, type ThreadPost } from '$lib/thread';
1818- import type { AtprotoDid } from '@atcute/lexicons/syntax';
1818+ import type { Did } from '@atcute/lexicons/syntax';
1919 import NotLoggedIn from './NotLoggedIn.svelte';
20202121 interface Props {
2222 client?: AtpClient | null;
2323- targetDid?: AtprotoDid;
2323+ targetDid?: Did;
2424 postComposerState: PostComposerState;
2525 class?: string;
2626 // whether to show replies that are not the user's own posts
···6363 loaderState.status = 'LOADING';
64646565 try {
6666- await fetchTimeline(client, did as AtprotoDid, 7, showReplies);
6666+ await fetchTimeline(client, did, 7, showReplies);
6767 // only fetch interactions if logged in (because if not who is the interactor)
6868 if (client.user) {
6969 if (!fetchingInteractions) {
···8383 }
84848585 loading = false;
8686- const cursor = postCursors.get(did as AtprotoDid);
8686+ const cursor = postCursors.get(did);
8787 if (cursor && cursor.end) loaderState.complete();
8888 };
8989···9292 // if we saw all posts dont try to load more.
9393 // this only really happens if the user has no posts at all
9494 // but we do have to handle it to not cause an infinite loop
9595- const cursor = did ? postCursors.get(did as AtprotoDid) : undefined;
9595+ const cursor = did ? postCursors.get(did) : undefined;
9696 if (!cursor?.end) loadMore();
9797 }
9898 });