diff --git a/jobs/active-users/main.go b/jobs/active-users/main.go index 9e55d7c3..db0bfe96 100644 --- a/jobs/active-users/main.go +++ b/jobs/active-users/main.go @@ -24,7 +24,7 @@ func main() { // Sort sort.Slice(users, func(i, j int) bool { - return users[i].Registered < users[j].Registered + return users[i].LastSeen > users[j].LastSeen }) // Add users to list diff --git a/pages/profile/profile.pixy b/pages/profile/profile.pixy index 1854238c..8a0b5130 100644 --- a/pages/profile/profile.pixy +++ b/pages/profile/profile.pixy @@ -83,3 +83,7 @@ component Profile(viewUser *arn.User, user *arn.User, animeList *arn.AnimeList, .post-toolbar.active .spacer .post-likes= len(post.Likes) + + if user != nil && user.Role == "admin" + .side-note + a(href="/api/user/" + viewUser.ID)= "API: ", user.Nick \ No newline at end of file