diff options
Diffstat (limited to 'lib/app.js')
-rw-r--r-- | lib/app.js | 13 |
1 files changed, 4 insertions, 9 deletions
@@ -44,15 +44,10 @@ function App(sbot, config) { this.useOoo = conf.ooo == null ? false : conf.ooo this.ssbPort = 8008 this.portRegexp = new RegExp(':' + this.ssbPort + '$') - /* - var capsConfig = config.caps || {} - this.userInviteCap = capsConfig.userInvite - || new Buffer('MxiG/9q04kN2C6vJQKa6ZhAj0G/FdfRkmeGTMnpsoek=', 'base64') - // sha256('user-invites:DEVELOPMENT') - this.peerInviteCap = capsConfig.peerInvite - || new Buffer('pmr+IzM+4VAZgi5H5bOopXkwnzqrNussS7DtAJsfbf0=', 'base64') - // sha256('peer-invites:DEVELOPMENT') - */ + this.caps = config.caps || {} + this.peerInviteCap = this.caps.peerInvite + || new Buffer('HT0wIYuk3OWc2FtaCfHNnakV68jSGRrjRMP9Kos7IQc=', 'base64') // sha256('peer-invites') + this.devPeerInviteCap = new Buffer('pmr+IzM+4VAZgi5H5bOopXkwnzqrNussS7DtAJsfbf0=', 'base64') // sha256('peer-invites:DEVELOPMENT') this.voteBranches = !!config.voteBranches this.hostname = (/:/.test(this.host) ? '[' + this.host + ']' : this.host) + this.port |