mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-08 09:53:10 +02:00
Fix issue link in issues page
The link assumes that the issue belongs to the signed in user, which is not necessarily the case I changed it to use repository owner name instead
This commit is contained in:
1 parent
5d5c4535cb
commit
cca2a53d6f
2 files changed
+7
-1
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user