Maybe ordered better?

git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3683 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
2021-11-03 23:23:20 +00:00
parent 2fb7fceb0c
commit 308e24c9fa
3 changed files with 4 additions and 17 deletions

View File

@ -229,7 +229,7 @@ async function getPosts(db, ids) {
var posts = [];
if (ids.length) {
await ssb.sqlStream(
"SELECT rowid, * FROM messages WHERE id IN (" + ids.map(x => "?").join(", ") + ")",
"SELECT rowid, * FROM messages WHERE id IN (" + ids.map(x => "?").join(", ") + ") ORDER BY timestamp DESC",
ids,
row => posts.push(row));
}