@use crate::{config::{Config, UrlKind}, templates::statics::index_css}; @use activitystreams::primitives::XsdAnyUri; @(listeners: &[XsdAnyUri], config: &Config) @config.hostname() | ActivityPub Relay

Welcome to @config.software_name() on @config.hostname()

Connected Servers:

@if listeners.is_empty() {

There are no connected servers at this time.

} else { }

Joining

If you are the admin of a server that supports activitypub relays, you can add this relay to your server.

Mastodon

Mastodon admins can add this relay by adding

@config.generate_url(UrlKind::Inbox)
in their relay settings.

Pleroma

Pleroma admins can add this relay by adding

@config.generate_url(UrlKind::Actor)
to their relay settings (I don't actually know how pleroma handles adding relays, is it still a mix command?).

Others

Consult the documentation for your server. It's likely that it follows either Mastodon or Pleroma's relay formatting.