fix: parseInt on timestamp from post

This commit is contained in:
Julian Lam
2024-01-25 16:33:31 -05:00
parent 6b517252b9
commit ddf17ee5fb

View File

@@ -171,7 +171,7 @@ Mocks.actor = async (uid) => {
Mocks.note = async (post) => {
const id = `${nconf.get('url')}/post/${post.pid}`;
const published = new Date(post.timestamp).toISOString();
const published = new Date(parseInt(post.timestamp, 10)).toISOString();
const [raw, userslug] = await Promise.all([
posts.getPostField(post.pid, 'content'),