mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fix: add back chronological sorting of asserted notes
This commit is contained in:
@@ -71,7 +71,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Reorder chain items by timestamp
|
// 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];
|
const mainPost = chain[0];
|
||||||
let { pid: mainPid, tid, uid: authorId, timestamp, name, content, sourceContent, _activitypub } = mainPost;
|
let { pid: mainPid, tid, uid: authorId, timestamp, name, content, sourceContent, _activitypub } = mainPost;
|
||||||
|
|||||||
Reference in New Issue
Block a user