pinned news sorting
This commit is contained in:
1 parent
a18abe215c
commit
4034df5c2d
1 file changed
+1
@@ -29,6 +29,7 @@ function news() {
|
|||||||
const now = new Date();
|
const now = new Date();
|
||||||
const pinned = skip !== 0 ? [] : await c('timeline')
|
const pinned = skip !== 0 ? [] : await c('timeline')
|
||||||
.find({until: {$gte: now}})
|
.find({until: {$gte: now}})
|
||||||
|
.sort({date: -1})
|
||||||
.toArray();
|
.toArray();
|
||||||
|
|
||||||
const id = i => i._id;
|
const id = i => i._id;
|
||||||
|
|||||||
Reference in new issue
Block a user