Skip to content

Commit 4bf61e1

Browse files
jeremymanningclaude
andcommitted
Fix empty Bluesky feed by using server-side reply filtering
The feed was empty because all 10 fetched posts were self-thread replies, which the client-side filter removed. Switch to the API's filter=posts_no_replies parameter to get only root/standalone posts and remove the redundant client-side filter. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent f477d48 commit 4bf61e1

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

js/bluesky-feed.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
'use strict';
66

77
const BLUESKY_HANDLE = 'contextlab.bsky.social';
8-
const API_URL = `https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed?actor=${BLUESKY_HANDLE}&limit=10`;
8+
const API_URL = `https://public.api.bsky.app/xrpc/app.bsky.feed.getAuthorFeed?actor=${BLUESKY_HANDLE}&limit=10&filter=posts_no_replies`;
99
const FEED_CONTAINER_ID = 'bluesky-feed';
1010

1111
/**
@@ -284,17 +284,12 @@
284284
return;
285285
}
286286

287-
// Filter out replies (only show original posts)
288-
const originalPosts = feedItems.filter(function(item) {
289-
return !item.post.record.reply;
290-
});
291-
292287
// Create posts container
293288
const postsDiv = document.createElement('div');
294289
postsDiv.className = 'bluesky-posts';
295290

296291
// Render each post
297-
originalPosts.forEach(function(item) {
292+
feedItems.forEach(function(item) {
298293
postsDiv.appendChild(renderBlueskyPost(item));
299294
});
300295

0 commit comments

Comments
 (0)