fix: display proper id if lock fails

This commit is contained in:
Barış Soner Uşaklı
2025-08-30 13:24:33 -04:00
parent 9d4a9b83cc
commit 19aa8a7168

View File

@@ -59,7 +59,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
let id = !activitypub.helpers.isUri(input) ? input.id : input;
const lockStatus = await lock(id);
if (!lockStatus) { // unable to achieve lock, stop processing.
winston.warn('[activitypub/notes.assert] Unable to acquire lock, skipping processing of', id);
winston.warn(`[activitypub/notes.assert] Unable to acquire lock, skipping processing of ${id}`);
return null;
}