mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-30 18:46:01 +01:00
fix: #13622, WordPress blog URLs not asserting properly
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user