fix: add missing unlock in nested try/catch

This commit is contained in:
Barış Soner Uşaklı
2025-09-11 17:28:56 -04:00
parent 95fb084ca4
commit 9184a7a4cc

View File

@@ -231,6 +231,7 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
unprocessed.shift();
} catch (e) {
activitypub.helpers.log(`[activitypub/notes.assert] Could not post topic (${mainPost.pid}): ${e.message}`);
await unlock(id);
return null;
}