Updated to latest ARN API

This commit is contained in:
2017-06-27 12:39:41 +02:00
parent 93e7ad01d5
commit 04373033cc
10 changed files with 23 additions and 14 deletions

View File

@ -33,9 +33,13 @@ func dashboard(ctx *aero.Context) string {
user := utils.GetUser(ctx)
flow.Parallel(func() {
posts, err = arn.AllPostsSlice()
posts, err = arn.AllPosts()
arn.SortPostsLatestFirst(posts)
posts = arn.FilterPostsWithUniqueThreads(posts, maxPosts)
}, func() {
// threads, err = arn.AllThreadsSlice()
// arn.SortPostsLatestFirst(posts)
// posts = arn.FilterPostsWithUniqueThreads(posts, maxPosts)
}, func() {
userList, err = arn.DB.GetMany("User", user.Following)
followingList = userList.([]*arn.User)