mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
fix: parseInt on timestamp from post
This commit is contained in:
@@ -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'),
|
||||
|
||||
Reference in New Issue
Block a user