From de6e63bbd7e0be5459d8541faec280312b1532b9 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 18 Feb 2025 13:33:11 -0500 Subject: [PATCH] fix: add back chronological sorting of asserted notes --- src/activitypub/notes.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js index f40d4bdb68..2b6a0fceaa 100644 --- a/src/activitypub/notes.js +++ b/src/activitypub/notes.js @@ -71,7 +71,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => { } // Reorder chain items by timestamp - // chain = chain.sort((a, b) => a.timestamp - b.timestamp); + chain = chain.sort((a, b) => a.timestamp - b.timestamp); const mainPost = chain[0]; let { pid: mainPid, tid, uid: authorId, timestamp, name, content, sourceContent, _activitypub } = mainPost;