fix: #13622, WordPress blog URLs not asserting properly

This commit is contained in:
Julian Lam
2025-08-29 13:33:14 -04:00
parent 648c454303
commit 4ef605b1aa
2 changed files with 47 additions and 27 deletions

View File

@@ -56,13 +56,15 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
return null;
}
const id = !activitypub.helpers.isUri(input) ? input.id : input;
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);
return null;
}
id = await activitypub.checkHeader(id);
let chain;
let context = await activitypub.contexts.get(uid, id);
if (context.tid) {