mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-05-07 05:16:14 +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
|
||||
targets.forEach((address) => {
|
||||
if (address.startsWith(nconf.get('url'))) {
|
||||
if (utils.isNumber(address) || address.startsWith(nconf.get('url'))) {
|
||||
targets.delete(address);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user