Skip to content

Node.js based forum software built for the modern web

fix: display proper id if lock fails

Barış Soner Uşaklı19aa8a716868
diff --git a/src/activitypub/notes.js b/src/activitypub/notes.js
index ca58459b8d..52f5d373e3 100644
--- a/src/activitypub/notes.js
+++ b/src/activitypub/notes.js
@@ -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;
}