From 7526bed07661264cd50b5c8c59e874d03dbca94e Mon Sep 17 00:00:00 2001 From: Eduard Urbach Date: Thu, 22 Jun 2017 17:33:41 +0200 Subject: [PATCH] Fixed typo --- pages/profile/posts.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pages/profile/posts.go b/pages/profile/posts.go index ea60c93e..ce54991c 100644 --- a/pages/profile/posts.go +++ b/pages/profile/posts.go @@ -10,7 +10,7 @@ import ( const postLimit = 10 -// GetPostsbyUser shows all forum posts of a particular user. +// GetPostsByUser shows all forum posts of a particular user. func GetPostsByUser(ctx *aero.Context) string { nick := ctx.Get("nick") user, err := arn.GetUserByNick(nick) @@ -31,9 +31,7 @@ func GetPostsByUser(ctx *aero.Context) string { postables = make([]arn.Postable, len(posts), len(posts)) for i, post := range posts { - postables[i] = arn.ToPostable(post) - } return ctx.HTML(components.PostableList(postables))