Improved dashboard performance

This commit is contained in:
2017-06-29 20:52:30 +02:00
parent f4703fdd5f
commit dca96b317e
6 changed files with 60 additions and 27 deletions

View File

@ -38,7 +38,7 @@ func Profile(ctx *aero.Context, viewUser *arn.User) string {
}, func() {
threads = viewUser.Threads()
arn.SortThreadsByDate(threads)
arn.SortThreadsLatestFirst(threads)
if len(threads) > maxPosts {
threads = threads[:maxPosts]