replies timeline only, appview-less bluesky client

feat: filter out replies from same repo

Changed files
+5 -2
src
lib
routes
+4 -1
src/lib/at/fetch.ts
···
key: r.uri as CanonicalResourceUri,
value: {
post: r.value as AppBskyFeedPost.Main,
-
replies: res.ok ? res.value : res.error
}
}))
)
···
key: r.uri as CanonicalResourceUri,
value: {
post: r.value as AppBskyFeedPost.Main,
+
// filter out posts from the same repo
+
replies: res.ok
+
? { ...res.value, records: res.value.records.filter((r) => r.did !== repo) }
+
: res.error
}
}))
)
+1 -1
src/routes/+page.svelte
···
newAccounts.map(async (account) => {
const client = $clients.get(account.did);
if (!client) return;
-
const accPosts = await fetchPostsWithReplyBacklinks(client, account.did, undefined, 10);
if (!accPosts.ok) {
console.error(`failed to fetch posts for account ${account.handle}: ${accPosts.error}`);
return;
···
newAccounts.map(async (account) => {
const client = $clients.get(account.did);
if (!client) return;
+
const accPosts = await fetchPostsWithReplyBacklinks(client, account.did, undefined, 20);
if (!accPosts.ok) {
console.error(`failed to fetch posts for account ${account.handle}: ${accPosts.error}`);
return;