New design for the users page

This commit is contained in:
2019-08-27 09:39:35 +09:00
parent c569351ec9
commit e033e4cb73
5 changed files with 57 additions and 26 deletions

View File

@ -146,7 +146,7 @@ func SortUsersLastSeenLast(users []*User) {
}
// SortUsersFollowers sorts a list of users by their number of followers.
func SortUsersFollowers(users []*User) {
func SortUsersFollowers(users []*User) map[string]int {
followCount := UserFollowerCountMap()
sort.Slice(users, func(i, j int) bool {
@ -163,4 +163,6 @@ func SortUsersFollowers(users []*User) {
return followersA > followersB
})
return followCount
}