show public key of users, send nickname with peering request
This commit is contained in:
parent
c9170202bf
commit
f87f0b965e
2 changed files with 34 additions and 15 deletions
|
|
@ -294,6 +294,7 @@ def requestPeering(data):
|
|||
takes {
|
||||
id
|
||||
message
|
||||
nickname (optional)
|
||||
}
|
||||
'''
|
||||
if len(data.get('id', '')) != 43:
|
||||
|
|
@ -303,6 +304,9 @@ def requestPeering(data):
|
|||
u.pending = 'sent'
|
||||
u.queued = True
|
||||
u.info['message'] = data.get('message', '')
|
||||
if data.get('nickname'):
|
||||
u.info['nickname'] = data.get('nickname', '')
|
||||
u.update_name()
|
||||
u.save()
|
||||
state.nodes.queue('add', u.id)
|
||||
state.nodes.queue(u.id, 'peering', 'requestPeering')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue