18 lines
305 B
Go

package groups
import "github.com/animenotifier/notify.moe/arn"
func fetchGroups(memberID string) []*arn.Group {
return arn.FilterGroups(func(group *arn.Group) bool {
if group.IsDraft {
return false
}
if memberID != "" && !group.HasMember(memberID) {
return false
}
return true
})
}