Don't alter avatar urls for now

This commit is contained in:
Jeremy Zhang 2017-08-30 00:25:25 +00:00
parent 12936455b0
commit a3971960e1

View File

@ -68,8 +68,8 @@ class SocketIOInterface:
}
if userobj["color"] == "000000":
userobj["color"] = None
if userobj["avatar_url"][len(userobj["avatar_url"])-15:] != ".jpg":
userobj["avatar_url"] = userobj["avatar_url"][:len(userobj["avatar_url"])-14] + ".jpg"
# if userobj["avatar_url"][len(userobj["avatar_url"])-15:] != ".jpg":
# userobj["avatar_url"] = userobj["avatar_url"][:len(userobj["avatar_url"])-14] + ".jpg"
if user.nick:
userobj["nick"] = user.nick
if user.game: