Fixed follower count in country lists

This commit is contained in:
2019-08-28 00:46:28 +09:00
parent f5b2e75ffe
commit 1b0bb6fdbd
2 changed files with 4 additions and 4 deletions

View File

@ -148,8 +148,8 @@ func ByCountry(ctx aero.Context) error {
return strings.ToLower(user.Location.CountryName) == countryName && user.Settings().Privacy.ShowLocation && user.HasAvatar() && user.HasNick() && user.IsActive()
})
arn.SortUsersFollowers(users)
return ctx.HTML(components.UsersByCountry(users, countryName))
followerCount := arn.SortUsersFollowers(users)
return ctx.HTML(components.UsersByCountry(users, followerCount, countryName))
}
// Staff ...