diff --git a/routers/user/home.go b/routers/user/home.go index 0a805903e..b19f3ff4a 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 f480c63a8..d1c2bd994 100644 --- a/templates/issue/user.tmpl +++ b/templates/issue/user.tmpl @@ -36,7 +36,7 @@ {{range .Issues}}{{if .}}