mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-01 03:26:04 +01:00
fix: handle invalid score
This commit is contained in:
@@ -231,7 +231,7 @@ Notes.syncUserInboxes = async function (tid) {
|
|||||||
const score = await db.sortedSetScore(`cid:${cid}:tids`, tid);
|
const score = await db.sortedSetScore(`cid:${cid}:tids`, tid);
|
||||||
|
|
||||||
winston.verbose(`[activitypub/syncUserInboxes] Syncing tid ${tid} with ${uids.size} inboxes`);
|
winston.verbose(`[activitypub/syncUserInboxes] Syncing tid ${tid} with ${uids.size} inboxes`);
|
||||||
await db.sortedSetsAdd(keys, keys.map(() => score), tid);
|
await db.sortedSetsAdd(keys, keys.map(() => score || Date.now()), tid);
|
||||||
};
|
};
|
||||||
|
|
||||||
Notes.getTopicPosts = async (tid, uid, start, stop) => {
|
Notes.getTopicPosts = async (tid, uid, start, stop) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user