@use crate::{ config::{Config, UrlKind}, data::Node, templates::{info, instance, statics::index_css}, }; @(nodes: &[Node], config: &Config) @config.hostname() | ActivityPub Relay

@Config::software_name()@Config::software_version()

on @config.hostname()

Connected Servers

@if nodes.is_empty() {

There are no connected servers at this time.

} else { }

Joining

@if config.restricted_mode() {

This relay is Restricted

This relay is currently in Restricted Mode, which means servers need to be approved ahead of time by the relay administrator. Please contact the admin before attempting to join.

} else {

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.