summaryrefslogtreecommitdiff
path: root/internal/db/instance.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/db/instance.go')
-rw-r--r--internal/db/instance.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/internal/db/instance.go b/internal/db/instance.go
index dff471193..3166a0a18 100644
--- a/internal/db/instance.go
+++ b/internal/db/instance.go
@@ -42,4 +42,8 @@ type Instance interface {
// GetInstancePeers returns a slice of instances that the host instance knows about.
GetInstancePeers(ctx context.Context, includeSuspended bool) ([]*gtsmodel.Instance, Error)
+
+ // GetInstanceModeratorAddresses returns a slice of email addresses belonging to active
+ // (as in, not suspended) moderators + admins on this instance.
+ GetInstanceModeratorAddresses(ctx context.Context) ([]string, Error)
}