diff options
| author | Guillermo Serrahima <dev@vylion.com> | 2026-07-16 02:21:38 +0200 |
|---|---|---|
| committer | Guillermo Serrahima <dev@vylion.com> | 2026-07-16 02:21:38 +0200 |
| commit | 2f4f118bb755e92961c1225c49ff30ab4951daff (patch) | |
| tree | 472bad08c8ac73e4d480355bf30eae7fb7c3f4ef | |
| parent | f0a7593dfa48a254f5a3664cd7ca80178d36f436 (diff) | |
| download | llostre-2f4f118bb755e92961c1225c49ff30ab4951daff.tar.xz llostre-2f4f118bb755e92961c1225c49ff30ab4951daff.zip | |
Moved out thread deduplication
| -rw-r--r-- | fetchers/app.bsky.feed.go | 2 | ||||
| -rw-r--r-- | main.go | 1 |
2 files changed, 2 insertions, 1 deletions
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) { @@ -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)) |
