From 2f4f118bb755e92961c1225c49ff30ab4951daff Mon Sep 17 00:00:00 2001 From: Guillermo Serrahima Date: Thu, 16 Jul 2026 02:21:38 +0200 Subject: Moved out thread deduplication --- fetchers/app.bsky.feed.go | 2 +- main.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/fetchers/app.bsky.feed.go b/fetchers/app.bsky.feed.go index 1083256..a0eaeb2 100644 --- a/fetchers/app.bsky.feed.go +++ b/fetchers/app.bsky.feed.go @@ -177,7 +177,7 @@ func parseAppBskyFeedPostCollection(conf *Config, session *auth.OAuthState, reco posts = append(posts, *note) } - return notes.DeduplicateThreads(posts), nil + return posts, nil } func FetchParents(conf *Config, replyToURI string, session *auth.OAuthState, maxDepth int) ([]notes.Note, error) { diff --git a/main.go b/main.go index e9a871e..85c8712 100644 --- a/main.go +++ b/main.go @@ -369,6 +369,7 @@ func postsHandler(w http.ResponseWriter, r *http.Request) { http.Error(w, err.Error(), http.StatusInternalServerError) return } + posts = notes.DeduplicateThreads(posts) } config.Logger.Debug("posts ready", "count", len(posts)) -- cgit v1.2.3