Skip to content

Node.js based forum software built for the modern web

fix: parseInt on timestamp from post

Julian Lamddf17ee5fba6
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'),