summaryrefslogtreecommitdiffstats
path: root/modules/notification
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-02-18 14:06:57 +0800
committerGitHub <noreply@github.com>2022-02-18 14:06:57 +0800
commita7b9d44d8842a5a1c82a180215536da647077f68 (patch)
tree3f25b081c0b65459329b99ce1c3e97ccce530db5 /modules/notification
parent6767798eefc3be5d2ebbec3571eec6e392b237f2 (diff)
downloadgitea-a7b9d44d8842a5a1c82a180215536da647077f68.tar.gz
gitea-a7b9d44d8842a5a1c82a180215536da647077f68.zip
Fix problem when self-assign notification (#18797)
Diffstat (limited to 'modules/notification')
-rw-r--r--modules/notification/ui/ui.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/notification/ui/ui.go b/modules/notification/ui/ui.go
index a27c5f699c..7f6bfa398e 100644
--- a/modules/notification/ui/ui.go
+++ b/modules/notification/ui/ui.go
@@ -203,7 +203,7 @@ func (ns *notificationService) NotifyPullRevieweDismiss(doer *user_model.User, r
}
func (ns *notificationService) NotifyIssueChangeAssignee(doer *user_model.User, issue *models.Issue, assignee *user_model.User, removed bool, comment *models.Comment) {
- if !removed {
+ if !removed && doer.ID != assignee.ID {
opts := issueNotificationOpts{
IssueID: issue.ID,
NotificationAuthorID: doer.ID,