Added sorting to posts on the profile
This commit is contained in:
parent
711f7f20a1
commit
dd7355a45d
@ -42,6 +42,7 @@ func Profile(ctx *aero.Context, viewUser *arn.User) string {
|
||||
}
|
||||
}, func() {
|
||||
posts = viewUser.Posts()
|
||||
arn.SortPostsLatestFirst(posts)
|
||||
|
||||
if len(posts) > maxPosts {
|
||||
posts = posts[:maxPosts]
|
||||
|
Loading…
Reference in New Issue
Block a user