From ddf17ee5fba6fbfc8a89dd2eac8ee434d31f7ee1 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Thu, 25 Jan 2024 16:33:31 -0500 Subject: [PATCH] fix: parseInt on timestamp from post --- src/activitypub/mocks.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/activitypub/mocks.js b/src/activitypub/mocks.js index ac9c732866..0f5681aaff 100644 --- a/src/activitypub/mocks.js +++ b/src/activitypub/mocks.js @@ -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'),