@inherits LocalizableComponentBase @* The relays the server's actor subscribes to (/clientapi/admin/relays): the configuration's (Federation:Relays, removed only there) and the ones added here, each with its subscription's state. PrivaPub answers an addition or a removal at once (202) and subscribes or unsubscribes in the background, since reaching a relay takes a fetch, so the panel reads the list again a few seconds later. *@
@Localizer["The https address of the relay's actor, or of its inbox. Public posts of this server go to it, and its posts come here."]
@if (IsLoading) {
@Localizer["The server subscribes to no relay."]
} @foreach (var relay in relays) {@Localizer["Its actor: {0}", actor]
}@if (relay.RequestedAt is { } requested) { @Localizer["Asked {0} ago", requested.GetPassedTime(Localizer)] } @if (relay.AnsweredAt is { } answered) { ยท @Localizer["answered {0} ago", answered.GetPassedTime(Localizer)] }
@if (relay.Source == "configuration") {@Localizer["Named by the configuration (Federation:Relays): removed only there."]
}