Node.js based forum software built for the modern web
fix: add back chronological sorting of asserted notes
Julian Lamde6e63bbd7e0
diff --git a/src/activitypub/notes.js b/src/activitypub/notes.jsindex 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;