mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-28 09:36:16 +01:00
fix: #8410
This commit is contained in:
@@ -24,7 +24,7 @@ module.exports = function (Posts) {
|
||||
Diffs.get = async function (pid, since) {
|
||||
const timestamps = await Diffs.list(pid);
|
||||
// Pass those made after `since`, and create keys
|
||||
const keys = timestamps.filter(t => (parseInt(t, 10) || 0) >= since)
|
||||
const keys = timestamps.filter(t => (parseInt(t, 10) || 0) > since)
|
||||
.map(t => 'diff:' + pid + '.' + t);
|
||||
return await db.getObjects(keys);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user