-
-
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
[Backport] [Fix] use default avatar for ghost user (fix 500 error) (#9536) #9537
Conversation
@techknowlogick / @lunny can you add Milestone 1.10.2 and lables? |
I'm not much of a fan of requerying before saving - however I guess it's the simplest thing to do and we don't want posterID to be -1. In master we should find the code that sets this and stop that |
@zeripath I know where it come from: from loadPoster() and only API is afected becouse of the technike wich is used to update issues :( |
We have three options:
|
If it's only loadPoster - fix that. Then make the update method log an error, but keep the sanity saving step in as we don't want to lose data. |
@lafriks would be nice if you look at it - thanks |
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.
As it's a backport it's fine though
The IsGhost function in that differs quite a lot from this one, for example you're still going to update the posterID to -1 for anything that isn't Ghost in that. Is that still intended? |
Thanks |
backports #9536