From d55a45e701434f1abcc871eff377db007289bd89 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 17 Dec 2019 17:10:37 +0100 Subject: [PATCH] Show Mastodon relay subscribers as instances in admin panel Signed-off-by: Thomas Citharel --- js/src/mixins/relay.ts | 2 +- js/src/views/Moderation/Logs.vue | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/js/src/mixins/relay.ts b/js/src/mixins/relay.ts index 63b7b6ee5..e008479dc 100644 --- a/js/src/mixins/relay.ts +++ b/js/src/mixins/relay.ts @@ -39,6 +39,6 @@ export default class RelayMixin extends Vue { } isInstance(actor: IActor): boolean { - return actor.type === ActorType.APPLICATION && actor.preferredUsername === 'relay'; + return actor.type === ActorType.APPLICATION && (actor.preferredUsername === 'relay' || actor.preferredUsername === actor.domain); } } diff --git a/js/src/views/Moderation/Logs.vue b/js/src/views/Moderation/Logs.vue index 2c2103b5b..62d55c3dc 100644 --- a/js/src/views/Moderation/Logs.vue +++ b/js/src/views/Moderation/Logs.vue @@ -65,10 +65,6 @@ export default class ReportList extends Vue { }