-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Bug fixed for org avatar caused by #1049 #1070
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
Conversation
LGTM |
models/user.go
Outdated
@@ -324,12 +324,12 @@ func (u *User) RelAvatarLink() string { | |||
|
|||
switch { | |||
case u.UseCustomAvatar: | |||
if !com.IsExist(u.CustomAvatarPath()) { | |||
if !com.IsExist(u.CustomAvatarPath()) || !com.IsFile(u.CustomAvatarPath()) { |
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.
Can just have !com.IsFile(u.CustomAvatarPath())
; com.IsFile(..)
will return false
if the file does not exist.
One small tweak, otherwise LGTM |
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.
LGTM
let L-G-T-M work |
No description provided.