enable gzip

This commit is contained in:
j 2014-05-25 12:59:43 +02:00
commit ed2b7cebfc
2 changed files with 7 additions and 3 deletions

View file

@ -80,8 +80,11 @@ class User(db.Model):
self.pending = ''
if username:
self.info['username'] = username
self.set_nickname(self.info.get('username', 'anonymous'))
else:
username = self.info.get('username')
if not username:
username = 'anonymous'
self.set_nickname(username)
# FIXME: need to set peered to False to not trigger changelog event
# before other side receives acceptPeering request
self.peered = False