mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: off by one error @barisusakli
This commit is contained in:
@@ -50,7 +50,7 @@ controller.list = async function (req, res) {
|
||||
const isMembers = await db.isSortedSetMembers(`uid:${req.uid}:inbox`, tids);
|
||||
tids = tids.filter((tid, idx) => isMembers[idx]);
|
||||
const count = tids.length;
|
||||
tids = tids.slice(start, stop);
|
||||
tids = tids.slice(start, stop + 1);
|
||||
|
||||
const targetUid = await user.getUidByUserslug(req.query.author);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user