mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 07:47:58 +02:00
fix: buildRecipients to handle if local uids are passed in followers
This commit is contained in:
@@ -504,7 +504,7 @@ ActivityPub.buildRecipients = async function (object, options) {
|
|||||||
|
|
||||||
// Remove local uris, public addresses, and any ids that aren't asserted actors
|
// Remove local uris, public addresses, and any ids that aren't asserted actors
|
||||||
targets.forEach((address) => {
|
targets.forEach((address) => {
|
||||||
if (address.startsWith(nconf.get('url'))) {
|
if (utils.isNumber(address) || address.startsWith(nconf.get('url'))) {
|
||||||
targets.delete(address);
|
targets.delete(address);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user