Put those posts back where they came from or so help me

This commit is contained in:
Lewis Dale 2023-09-27 07:34:19 +01:00
parent a595c60c2e
commit 8be90f42a5

View File

@ -100,12 +100,8 @@ const mapComment = comment => ({
module.exports = async () => { module.exports = async () => {
// const cache = new PostCache(); const cache = new PostCache();
// await cache.fetchLatest(); await cache.fetchLatest();
const cache = {
posts: []
}
return Object.values(cache.posts) return Object.values(cache.posts)
.sort(dateSort) .sort(dateSort)
@ -122,4 +118,4 @@ module.exports = async () => {
return comments; return comments;
}, { like: [], reply: [], repost: [] }) }, { like: [], reply: [], repost: [] })
})); }));
}; };