aboutsummaryrefslogtreecommitdiff
path: root/backend/notes/note.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/notes/note.go')
-rw-r--r--backend/notes/note.go5
1 files changed, 0 insertions, 5 deletions
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