Added sorting to posts on the profile

This commit is contained in:
Eduard Urbach 2017-06-22 17:49:32 +02:00
parent 711f7f20a1
commit dd7355a45d

View File

@ -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]