diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-02-18 14:06:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-18 14:06:57 +0800 |
commit | a7b9d44d8842a5a1c82a180215536da647077f68 (patch) | |
tree | 3f25b081c0b65459329b99ce1c3e97ccce530db5 /modules/notification | |
parent | 6767798eefc3be5d2ebbec3571eec6e392b237f2 (diff) | |
download | gitea-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.go | 2 |
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, |