mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 19:46:01 +01:00
re: #6408
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user