mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-06 11:05:37 +02:00
re: #6408
This commit is contained in:
@@ -150,5 +150,7 @@
|
|||||||
|
|
||||||
"diffs.title": "Post Edit History",
|
"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.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);
|
return app.alertError(err.message);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
timestamps.unshift(Date.now());
|
||||||
|
|
||||||
Benchpress.parse('partials/modals/post_history', {
|
Benchpress.parse('partials/modals/post_history', {
|
||||||
diffs: timestamps.map(function (timestamp) {
|
diffs: timestamps.map(function (timestamp) {
|
||||||
timestamp = parseInt(timestamp, 10);
|
timestamp = parseInt(timestamp, 10);
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ Diffs.get = function (pid, since, callback) {
|
|||||||
function (timestamps, next) {
|
function (timestamps, next) {
|
||||||
// Pass those made after `since`, and create keys
|
// Pass those made after `since`, and create keys
|
||||||
const keys = timestamps.filter(function (timestamp) {
|
const keys = timestamps.filter(function (timestamp) {
|
||||||
return (parseInt(timestamp, 10) || 0) > since;
|
return (parseInt(timestamp, 10) || 0) >= since;
|
||||||
}).map(function (timestamp) {
|
}).map(function (timestamp) {
|
||||||
return 'diff:' + pid + '.' + timestamp;
|
return 'diff:' + pid + '.' + timestamp;
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user