mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[feature] Email notifications for new / closed moderation reports (#1628)
* start fiddling about with email sending to allow multiple recipients * do some fiddling * notifs working * notify on closed report * finishing up * envparsing * use strings.ContainsAny
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
Reference in New Issue
Block a user