Julian Lam 7 years ago
parent 73bc96528a
commit f0f30041f5

@ -150,5 +150,7 @@
"diffs.title": "Post Edit History",
"diffs.description": "This post has <strong>%1</strong> revisions. Click one of the revisions below to see the post content at that point in time.",
"diffs.no-revisions-description": "This post has <strong>%1</strong> revisions."
"diffs.no-revisions-description": "This post has <strong>%1</strong> revisions.",
"diffs.current-revision": "current revision",
"diffs.original-revision": "original revision"
}

@ -15,6 +15,8 @@ define('forum/topic/diffs', ['forum/topic/images', 'benchpress', 'translator'],
return app.alertError(err.message);
}
timestamps.unshift(Date.now());
Benchpress.parse('partials/modals/post_history', {
diffs: timestamps.map(function (timestamp) {
timestamp = parseInt(timestamp, 10);

@ -27,7 +27,7 @@ Diffs.get = function (pid, since, callback) {
function (timestamps, next) {
// Pass those made after `since`, and create keys
const keys = timestamps.filter(function (timestamp) {
return (parseInt(timestamp, 10) || 0) > since;
return (parseInt(timestamp, 10) || 0) >= since;
}).map(function (timestamp) {
return 'diff:' + pid + '.' + timestamp;
});

Loading…
Cancel
Save