mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-27 06:03:51 +03:00
fix: Ignore self review request notification
A notification would be trigger if a user request itself as review of a PR.
This commit is contained in:
parent
5b542d6c79
commit
b698b256f1
1 changed files with 2 additions and 1 deletions
|
@ -72,7 +72,8 @@ func ReviewRequest(ctx context.Context, issue *issues_model.Issue, doer, reviewe
|
|||
return nil, err
|
||||
}
|
||||
|
||||
if comment != nil {
|
||||
// don't notify if the user is requesting itself as reviewer
|
||||
if comment != nil && doer.ID != reviewer.ID {
|
||||
notify_service.PullRequestReviewRequest(ctx, doer, issue, reviewer, isAdd, comment)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue