Fix/change things
This commit is contained in:
@ -326,11 +326,7 @@ func (portal *Portal) UpdateAvatar(user *User, avatar *whatsappExt.ProfilePicInf
|
||||
}
|
||||
}
|
||||
|
||||
if avatar.Status != 0 && avatar.Status != 404 {
|
||||
// 401s can happen a lot so let's not log those.
|
||||
if avatar.Status != 401 {
|
||||
portal.log.Warnln("Unexpected avatar update status code, not updating.", avatar)
|
||||
}
|
||||
if avatar.Status != 0 {
|
||||
return false
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user