fix: ap queue id to use payload.type payload.id

This commit is contained in:
Barış Soner Uşaklı
2025-08-01 11:59:59 -04:00
parent 9a32bb5696
commit a8bf4ea069

View File

@@ -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}`, {