Node.js based forum software built for the modern web
lets break some themes :evil:
barisusaklif3d2ad5f1f17
diff --git a/src/posts.js b/src/posts.jsindex 0f3cad00f9..a3d19e7a7f 100644--- a/src/posts.js+++ b/src/posts.js@@ -56,8 +56,8 @@ var async = require('async'),return next();}- post.relativeTime = utils.toISOString(post.timestamp);- post.relativeEditTime = parseInt(post.edited, 10) !== 0 ? utils.toISOString(post.edited) : '';+ post.timestampISO = utils.toISOString(post.timestamp);+ post.editedISO = parseInt(post.edited, 10) !== 0 ? utils.toISOString(post.edited) : '';Posts.parsePost(post, next);}, next);},diff --git a/src/posts/summary.js b/src/posts/summary.jsindex 0d9822b30c..3cb5586bc6 100644--- a/src/posts/summary.js+++ b/src/posts/summary.js@@ -81,7 +81,7 @@ module.exports = function(Posts) {post.user = results.users[post.uid];post.topic = results.topics[post.tid];post.category = results.categories[post.topic.cid];- post.relativeTime = utils.toISOString(post.timestamp);+ post.timestampISO = utils.toISOString(post.timestamp);if (!post.content || !options.parse) {if (options.stripTags) {diff --git a/src/topics/create.js b/src/topics/create.jsindex 6c7c4bccf1..e9669d4c44 100644--- a/src/topics/create.js+++ b/src/topics/create.js@@ -307,7 +307,7 @@ module.exports = function(Topics) {postData.display_moderator_tools = true;postData.display_move_tools = true;postData.selfPost = false;- postData.relativeTime = utils.toISOString(postData.timestamp);+ postData.timestampISO = utils.toISOString(postData.timestamp);postData.topic.title = validator.escape(postData.topic.title);next(null, postData);diff --git a/src/topics/data.js b/src/topics/data.jsindex dec8c60d69..a32ce5256a 100644--- a/src/topics/data.js+++ b/src/topics/data.js@@ -60,7 +60,7 @@ module.exports = function(Topics) {}topic.titleRaw = topic.title;topic.title = validator.escape(topic.title);- topic.relativeTime = utils.toISOString(topic.timestamp);+ topic.timestampISO = utils.toISOString(topic.timestamp);topic.lastposttimeISO = utils.toISOString(topic.lastposttime);}diff --git a/src/topics/teaser.js b/src/topics/teaser.jsindex 3973e8ebd6..c772b271d4 100644--- a/src/topics/teaser.js+++ b/src/topics/teaser.js@@ -60,7 +60,7 @@ module.exports = function(Topics) {}post.user = users[post.uid];- post.timestamp = utils.toISOString(post.timestamp);+ post.timestampISO = utils.toISOString(post.timestamp);tidToPost[post.tid] = post;posts.parsePost(post, next);}, next);diff --git a/src/user/approval.js b/src/user/approval.jsindex 9ed17be898..890d6ee2ca 100644--- a/src/user/approval.js+++ b/src/user/approval.js@@ -149,7 +149,7 @@ module.exports = function(User) {function(users, next) {users.forEach(function(user, index) {if (user) {- user.timestamp = utils.toISOString(data[index].score);+ user.timestampISO = utils.toISOString(data[index].score);}});diff --git a/src/views/admin/manage/flags.tpl b/src/views/admin/manage/flags.tplindex 6370630c20..b6abe3252a 100644--- a/src/views/admin/manage/flags.tpl+++ b/src/views/admin/manage/flags.tpl@@ -57,7 +57,7 @@</div><small><span class="pull-right">- Posted in <a href="{config.relative_path}/category/{posts.category.slug}" target="_blank"><i class="fa {posts.category.icon}"></i> {posts.category.name}</a>, <span class="timeago" title="{posts.relativeTime}"></span> •+ Posted in <a href="{config.relative_path}/category/{posts.category.slug}" target="_blank"><i class="fa {posts.category.icon}"></i> {posts.category.name}</a>, <span class="timeago" title="{posts.timestampISO}"></span> •<a href="{config.relative_path}/topic/{posts.topic.slug}/{posts.index}" target="_blank">Read More</a></span></small>