Change to static image and color sidebar fix

This commit is contained in:
Jeremy Zhang 2017-08-25 23:37:54 +00:00
parent 8b6645306a
commit 0631ccc96d

View File

@ -66,6 +66,10 @@ class SocketIOInterface:
"username": user.name, "username": user.name,
"nick": None, "nick": None,
} }
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 user.nick: if user.nick:
userobj["nick"] = user.nick userobj["nick"] = user.nick
if user.game: if user.game: