Improved users page
This commit is contained in:
@ -2,6 +2,7 @@ package users
|
||||
|
||||
import (
|
||||
"net/http"
|
||||
"sort"
|
||||
|
||||
"github.com/aerogo/aero"
|
||||
"github.com/animenotifier/arn"
|
||||
@ -11,7 +12,11 @@ import (
|
||||
// Get ...
|
||||
func Get(ctx *aero.Context) string {
|
||||
users, err := arn.FilterUsers(func(user *arn.User) bool {
|
||||
return user.IsActive()
|
||||
return user.IsActive() && user.Avatar != ""
|
||||
})
|
||||
|
||||
sort.Slice(users, func(i, j int) bool {
|
||||
return users[i].Registered < users[j].Registered
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
|
Reference in New Issue
Block a user