-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use ghost user if user was not found #29161
Conversation
@@ -159,6 +159,14 @@ func (r *Review) LoadReviewer(ctx context.Context) (err error) { | |||
return err | |||
} | |||
r.Reviewer, err = user_model.GetPossibleUserByID(ctx, r.ReviewerID) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Optimally, these changes should be part of GetPossibleUserByID
(except for setting r.ReviewerID
).
However, I don't know if there are any places whose behavior would change because of this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree, but it's still mixed logic like the change for the comment.Assignee
which does not use GetPossibleUserByID
.
I was unable to create a backport for 1.21. @KN4CK3R, please send one manually. 🍵
|
Fixes go-gitea#29159 (cherry picked from commit 37061e8)
Automatically locked because of our CONTRIBUTING guidelines |
Fixes #29159