aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/repo/issue.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/web/repo/issue.go')
-rw-r--r--routers/web/repo/issue.go8
1 files changed, 6 insertions, 2 deletions
diff --git a/routers/web/repo/issue.go b/routers/web/repo/issue.go
index 415f34d1fb..833f59981b 100644
--- a/routers/web/repo/issue.go
+++ b/routers/web/repo/issue.go
@@ -637,8 +637,12 @@ func attachmentsHTML(ctx *context.Context, attachments []*repo_model.Attachment,
return attachHTML
}
-// get all teams that current user can mention
-func handleTeamMentions(ctx *context.Context) {
+// handleMentionableAssigneesAndTeams gets all teams that current user can mention, and fills the assignee users to the context data
+func handleMentionableAssigneesAndTeams(ctx *context.Context, assignees []*user_model.User) {
+ // TODO: need to figure out how many places this is really used, and rename it to "MentionableAssignees"
+ // at the moment it is used on the issue list page, for the markdown editor mention
+ ctx.Data["Assignees"] = assignees
+
if ctx.Doer == nil || !ctx.Repo.Owner.IsOrganization() {
return
}