cosocial.ca is one of the many independent Mastodon servers you can use to participate in the fediverse.
A co-op run social media server for all Canadians. More info at https://blog.cosocial.ca

Server stats:

141
active users

Evan Prodromou

@devnull My code does something like this:

```
const publicRecipients = await getPublicRecipients(activity) // to, cc, audience
const privateRecipients = await getPrivateRecipients(activity) // bto, bcc

const publicInboxes = await getSharedOrDirectInboxes(publicRecipients)
const privateInboxes = await getDirectInboxesOnly(privateRecipients)

await Promise.all(deliverToAll(publicInboxes, activity), deliverToAll(privateInboxes, activity))
```