diff options
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/issue.go | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index c54cd28439..b94eddc4ef 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -120,6 +120,15 @@ func Issues(ctx *context.Context) { forceEmpty bool ) + if ctx.IsSigned { + switch viewType { + case "created_by": + posterID = ctx.User.ID + case "mentioned": + mentionedID = ctx.User.ID + } + } + repo := ctx.Repo.Repository selectLabels := ctx.Query("labels") milestoneID := ctx.QueryInt64("milestone") @@ -150,11 +159,12 @@ func Issues(ctx *context.Context) { MilestoneID: milestoneID, AssigneeID: assigneeID, MentionedID: mentionedID, + PosterID: posterID, IsPull: isPullList, IssueIDs: issueIDs, }) if err != nil { - ctx.Error(500, "GetSearchIssueStats") + ctx.Handle(500, "GetIssueStats", err) return } } |