relay-new.activitypub.ca - Docs

What Is A Relay?

A relay server is a way of distributing posts (sometimes known as "toots") between ActivityPub-compatible servers. A relay forwards ("Announces") all posts that it sees to all subscribers, and each subscriber forwards a copy of all public posts to all connected relays. This essentially means that when someone on a connected server makes a post, it'll show up in the Federated timeline (for Mastodon) or Known Network timeline (for Akkoma / Pleroma) of all other connected servers.

This relay adds some additional features on top of basic relay functionality, allowing subscribers to configure how their instances interact with the relay. Instances can subscribe to all posts, only posts with specific hashtags, or no posts at all and only publish messages to the relay. See the documentation below for more information on how to configure this.

Relay Commands

In order to configure how an instance interacts with the relay, an instance administrator can send DMs to the relay's user with various commands. For example:

Message to Relay
@relay@relay-new.activitypub.ca status
Response from Relay
Your instance's subscribe mode means you are publishing to the relay and receiving all messages from the relay.

Messages to the relay can also include parameters–e.g. to change the subscribe mode, or specify hashtags to subscribe to:

Message to Relay
@relay@relay-new.activitypub.ca subscribe-hashtag #hashtag1 #hashtag2
Response from Relay
You are now subscribed to the following hashtags: #hashtag1 #hashtag2

Command List

Command Parameter(s) Description Example Response
help None Show a summary of available relay commands. The relay's help; try it and see!
status None Ask the relay for your instance's status on this relay.

This relay has 5 subscribers.

Your instance's subscribe mode means you are publishing to the relay and receiving a filtered subset of messages from the relay.

Hashtag Filters:
  • #canada
  • #ontario
  • #ottawa
set-subscribe-mode "none", "all", or "filter" Change the subscribe mode for your instance on this relay. The subscribe mode controls what posts from other subscribers of this relay will reach your instance. Setting this to "filter" allows you to configure hashtag filters using the subscribe-hashtag command. Updated subscribe mode from "none" to "all".
set-publish-mode "none", "all" Change the publish mode of your instance on this relay. This controls what posts from your instance are broadcast to other subscribers of this relay. Updated publish mode from "none" to "all".
subscribe-hashtag #hashtag1 #hashtag2 Add the listed hashtags to the set of hashtag filters for your instance. Posts with these hashtags will be delivered to your instance. You are now subscribed to the following hashtags:
  • #hashtag1
  • #hashtag2
unsubscribe-hashtag #hashtag1 #hashtag2 Remove the listed hashtags from the set of hashtag filters for your instance. Posts with these hashtags will no longer be delivered to your instance. You are now unsubscribed from the following hashtags:
  • #hashtag1
  • #hashtag2

FAQ