prevent timeago in future for new posts

v1.18.x
Barış Soner Uşaklı 8 years ago
parent dd3bf8d1ca
commit a513d98e1d

@ -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);

Loading…
Cancel
Save