From 1a31555761bb5180ed496d61511f6a36d791cb78 Mon Sep 17 00:00:00 2001 From: Guillermo Serrahima Date: Tue, 7 Apr 2026 08:36:13 +0200 Subject: reworked cache with redis + improved fetching --- backend/notes/note.go | 5 ----- 1 file changed, 5 deletions(-) (limited to 'backend/notes/note.go') diff --git a/backend/notes/note.go b/backend/notes/note.go index 7ef537f..72c885d 100644 --- a/backend/notes/note.go +++ b/backend/notes/note.go @@ -1,7 +1,6 @@ package notes import ( - "sort" "time" ) @@ -54,10 +53,6 @@ func isChainContained(smallChainPost, bigChainPost Note) bool { } func DeduplicateThreads(posts []Note) []Note { - sort.Slice(posts, func(i, j int) bool { - return len(posts[i].Parents) > len(posts[j].Parents) - }) - filtered := []Note{} for _, post := range posts { isRedundant := false -- cgit v1.2.3