diff --git a/pages/dashboard/dashboard.go b/pages/dashboard/dashboard.go index 48a36c05..f37bbf1c 100644 --- a/pages/dashboard/dashboard.go +++ b/pages/dashboard/dashboard.go @@ -40,7 +40,7 @@ func Get(ctx *aero.Context) string { userList, err := arn.DB.GetMany("User", followIDList) if err != nil { - return ctx.Error(500, "Error fetching followers", err) + return ctx.Error(500, "Error fetching followed users", err) } followingList := userList.([]*arn.User) diff --git a/pages/dashboard/dashboard.pixy b/pages/dashboard/dashboard.pixy index 2fb996bb..7fee6c6f 100644 --- a/pages/dashboard/dashboard.pixy +++ b/pages/dashboard/dashboard.pixy @@ -1,4 +1,4 @@ -component Dashboard(posts []*arn.Post, followers []*arn.User) +component Dashboard(posts []*arn.Post, following []*arn.User) h2.page-title Dash .widgets @@ -38,15 +38,15 @@ component Dashboard(posts []*arn.Post, followers []*arn.User) Icon("comment") span ... - if len(followers) > 0 + if len(following) > 0 .widget.mountable h3.widget-title Contacts - each follower in followers - a.widget-element.ajax(href="/+" + follower.Nick) + each user in following + a.widget-element.ajax(href="/+" + user.Nick) .widget-element-text Icon("address-card") - span= follower.Nick + span= user.Nick .widget.mountable h3.widget-title Follow