Fixed dashboard
This commit is contained in:
parent
af85fd1033
commit
8d0aa54333
@ -32,7 +32,9 @@ func Get(ctx *aero.Context) string {
|
|||||||
}
|
}
|
||||||
|
|
||||||
followIDList := user.Following
|
followIDList := user.Following
|
||||||
|
var followingList []*arn.User
|
||||||
|
|
||||||
|
if len(followIDList) > 0 {
|
||||||
if len(followIDList) > maxFollowing {
|
if len(followIDList) > maxFollowing {
|
||||||
followIDList = followIDList[:maxFollowing]
|
followIDList = followIDList[:maxFollowing]
|
||||||
}
|
}
|
||||||
@ -43,7 +45,8 @@ func Get(ctx *aero.Context) string {
|
|||||||
return ctx.Error(500, "Error fetching followed users", err)
|
return ctx.Error(500, "Error fetching followed users", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
followingList := userList.([]*arn.User)
|
followingList = userList.([]*arn.User)
|
||||||
|
}
|
||||||
|
|
||||||
return ctx.HTML(components.Dashboard(posts, followingList))
|
return ctx.HTML(components.Dashboard(posts, followingList))
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user