diff options
author | 6543 <6543@obermui.de> | 2020-02-28 09:16:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-28 05:16:41 -0300 |
commit | 694f44660f51aa2e8be920c49461380b7db64755 (patch) | |
tree | c3b8ad0b6b3660c8e0a4c633d372f116df493fc0 /routers | |
parent | 513b962c1df0921681e76ea6a1a2b8871bc13af4 (diff) | |
download | gitea-694f44660f51aa2e8be920c49461380b7db64755.tar.gz gitea-694f44660f51aa2e8be920c49461380b7db64755.zip |
inform participants on UI too (#10473)
* inform participants on UI too
* ajust test
* refactor getParticipantIDsByIssue
Diffstat (limited to 'routers')
-rw-r--r-- | routers/repo/issue.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go index fdade2795d..ca7be7bd96 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -704,7 +704,7 @@ func ViewIssue(ctx *context.Context) { iw = &models.IssueWatch{ UserID: ctx.User.ID, IssueID: issue.ID, - IsWatching: models.IsWatching(ctx.User.ID, ctx.Repo.Repository.ID), + IsWatching: models.IsWatching(ctx.User.ID, ctx.Repo.Repository.ID) || models.IsUserParticipantsOfIssue(ctx.User, issue), } } } |