Updated to latest ARN API
This commit is contained in:
@ -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)
|
||||
|
@ -15,7 +15,7 @@ component Dashboard(posts []*arn.Post, following []*arn.User)
|
||||
h3.widget-title Forums
|
||||
|
||||
each post in posts
|
||||
a.widget-element.ajax(href=post.Thread().Link() + "#" + post.ID)
|
||||
a.widget-element.ajax(href=post.Thread().Link())
|
||||
.widget-element-text
|
||||
Icon(arn.GetForumIcon(post.Thread().Tags[0]))
|
||||
span= post.Thread().Title
|
||||
|
Reference in New Issue
Block a user