mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-04 03:21:18 +01:00
prevent timeago in future for new posts
This commit is contained in:
@@ -18,6 +18,11 @@ define('forum/topic/posts', [
|
||||
|
||||
data.loggedIn = !!app.user.uid;
|
||||
data.privileges = ajaxify.data.privileges;
|
||||
|
||||
// prevent timeago in future by setting timestamp to 1 sec behind now
|
||||
data.posts[0].timestamp = Date.now() - 1000;
|
||||
data.posts[0].timestampISO = utils.toISOString(data.posts[0].timestamp);
|
||||
|
||||
Posts.modifyPostsByPrivileges(data.posts);
|
||||
|
||||
updatePostCounts(data.posts);
|
||||
|
||||
Reference in New Issue
Block a user