mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
fix: ap queue id to use payload.type payload.id
This commit is contained in:
@@ -409,7 +409,7 @@ ActivityPub.send = async (type, id, targets, payload) => {
|
||||
await Promise.all(inboxBatch.map(async (uri) => {
|
||||
const ok = await sendMessage(uri, id, type, payload);
|
||||
if (!ok) {
|
||||
const queueId = `${type}:${id}:${new URL(uri).hostname}`;
|
||||
const queueId = `${payload.type}:${payload.id}:${new URL(uri).hostname}`;
|
||||
const nextTryOn = Date.now() + oneMinute;
|
||||
retryQueueAdd.push(['ap:retry:queue', nextTryOn, queueId]);
|
||||
retryQueuedSet.push([`ap:retry:queue:${queueId}`, {
|
||||
|
||||
Reference in New Issue
Block a user