Commit a672ecc94225dcbe35054ea9e29271d4043e5eb8
log Autofollow result clearly
mix committed on 12/28/2017, 8:20:49 AMParent: 5027b2df2cae85be1d08a952d12046c5ff5a31d3
Files changed
app/html/app.js | changed |
app/html/app.js | ||
---|---|---|
@@ -82,9 +82,12 @@ | ||
82 | 82 | //if you have less than 5 followers, maybe use the autoinvite |
83 | 83 | if(Object.keys(friends).length <= 5) |
84 | 84 | api.invite.async.autofollow( |
85 | 85 | invite, |
86 | - function (err, follows) { console.log('autofollowed', err, follows) } | |
86 | + function (err, follows) { | |
87 | + if (err) console.error('Autofollow error:', err) | |
88 | + else console.log('Autofollow success', follows) | |
89 | + } | |
87 | 90 | ) |
88 | 91 | else |
89 | 92 | console.log('no autoinvite - you have friends already') |
90 | 93 | }) |
Built with git-ssb-web