Excluding same-server recipients This API is available since Fedify 0.9.0. In most cases, you will not want to deliver activities via ActivityPub to recipients on the same server with the sender. To exclude same-server recipients, you can pass the excludeBaseUris option to the sendActivity() method: await ctx.sendActivity( { handle: senderHandle }, "followers", activity, { excludeBaseUris: [ctx.getInboxUri()] }, ); Excluded recipients do not receive the activity, even if they are included in the recipients parameter. NOTE Only the origin parts of the specified URIs are compared with the inbox URLs of the recipients. Even if they have pathname or query parts, they are ignored when comparing the URIs.
https://todon.eu/system/media_attachments/files/112/467/797/030/778/548/original/16faa7f13a7460b2.png