Fix/change things

This commit is contained in:
Tulir Asokan
2019-05-23 20:09:13 +03:00
parent 94ba2244b0
commit f9c3e99d10
5 changed files with 56 additions and 18 deletions

View File

@ -136,11 +136,7 @@ func (puppet *Puppet) UpdateAvatar(source *User, avatar *whatsappExt.ProfilePicI
}
}
if avatar.Status != 0 && avatar.Status != 404 {
// 401s can happen a lot so let's not log those.
if avatar.Status != 401 {
puppet.log.Warnln("Unexpected avatar update status code, not updating.", avatar)
}
if avatar.Status != 0 {
return false
}