diff --git a/routers/user/home.go b/routers/user/home.go index 0a805903ec..b19f3ff4ac 100644 --- a/routers/user/home.go +++ b/routers/user/home.go @@ -235,6 +235,12 @@ func Issues(ctx *middleware.Context) { return } + err = issues[i].Repo.GetOwner() + if err != nil { + ctx.Handle(500, "user.Issues(GetOwner)", err) + return + } + issues[i].Poster, err = models.GetUserById(issues[i].PosterId) if err != nil { ctx.Handle(500, "user.Issues(GetUserById)", err) diff --git a/templates/issue/user.tmpl b/templates/issue/user.tmpl index f480c63a8f..d1c2bd9941 100644 --- a/templates/issue/user.tmpl +++ b/templates/issue/user.tmpl @@ -36,7 +36,7 @@ {{range .Issues}}{{if .}}
#{{.Index}} -
{{.Name}}
+
{{.Name}}

{{.Poster.Name}}