Commit 6a299d30ab8be23580551ca3eba6ee927e4790da
tidy up app/html/app
mix irving committed on 5/29/2018, 1:44:44 AMParent: 4aff4aca95f4ab571c23baeb7192f7516341f6fc
Files changed
app/html/app.js | changed |
app/html/app.js | ||
---|---|---|
@@ -12,9 +12,8 @@ | ||
12 | 12 | 'keys.sync.id': 'first', |
13 | 13 | 'router.sync.router': 'first', |
14 | 14 | 'settings.sync.get': 'first', |
15 | 15 | 'settings.sync.set': 'first', |
16 | - | |
17 | 16 | 'invite.async.autofollow': 'first', |
18 | 17 | 'config.sync.load': 'first', |
19 | 18 | 'sbot.async.friendsGet': 'first', |
20 | 19 | 'sbot.async.get': 'first' |
@@ -85,10 +84,10 @@ | ||
85 | 84 | console.log('no invites') |
86 | 85 | return |
87 | 86 | } |
88 | 87 | |
89 | - var self_id = api.config.sync.load().keys.id | |
90 | - api.sbot.async.friendsGet({dest: self_id}, function (err, friends) { | |
88 | + var myKey = api.config.sync.load().keys.id | |
89 | + api.sbot.async.friendsGet({dest: myKey}, function (err, friends) { | |
91 | 90 | // if you have less than 5 followers, maybe use the autoinvite |
92 | 91 | if (Object.keys(friends).length <= 5) { |
93 | 92 | invites.forEach(invite => { |
94 | 93 | console.log('using invite:', invite) |
Built with git-ssb-web