fix: add back chronological sorting of asserted notes

This commit is contained in:
Julian Lam
2025-02-18 13:33:11 -05:00
parent 4bc0031f58
commit de6e63bbd7

View File

@@ -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;