feed update; other
This commit is contained in:
1 parent
70707a2244
commit
6655a5fca8
8 files changed
+146
-66
No files matched your search
+2
-2
@@ -4,9 +4,9 @@ import {accepts} from './';
|
||||
import {c} from '../core/db';
|
||||
import {sortBy} from '../utils/sort';
|
||||
|
||||
const timestamp = i => i.getTime();
|
||||
const sortNewsByDate = sortBy(
|
||||
i => (new Date(i.date))
|
||||
.getTime()
|
||||
i => timestamp(new Date(i.date))
|
||||
);
|
||||
|
||||
const redirect = async ctx => ctx.redirect('/');
|
||||
|
||||
Reference in new issue
Block a user