mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
Merge remote-tracking branch 'origin/master' into develop
This commit is contained in:
@@ -138,7 +138,11 @@ Notes.assert = async (uid, input, options = { skipChecks: false }) => {
|
||||
const { hostname } = new URL(mainPid);
|
||||
remoteCid = Array.from(set).filter((id, idx) => {
|
||||
const { hostname: cidHostname } = new URL(id);
|
||||
return assertedGroups[idx] && cidHostname === hostname;
|
||||
const explicitAudience = Array.isArray(_activitypub.audience) ?
|
||||
_activitypub.audience.includes(id) :
|
||||
_activitypub.audience === id;
|
||||
|
||||
return assertedGroups[idx] && (explicitAudience || cidHostname === hostname);
|
||||
}).shift();
|
||||
} catch (e) {
|
||||
// noop
|
||||
|
||||
Reference in New Issue
Block a user