Commit eec0ff0889b3f1823925555536856f1eb53e13b2
forward to root if already following
Ev Bogue committed on 12/21/2016, 6:05:23 PMParent: dfb739655cdd396a5a50012f250f79114e0dbcf8
Files changed
modules_basic/invite.js | changed |
modules_basic/invite.js | ||
---|---|---|
@@ -51,9 +51,9 @@ | ||
51 | 51 … | sbot.invite.use({feed: id}, function (err, msg) { |
52 | 52 … | |
53 | 53 … | //if they already follow us, just check we actually follow them. |
54 | 54 … | if(err) api.follower_of(id, data.key, function (_err, follows) { |
55 | - if(follows) cb(err) | |
55 … | + if(follows) { location.hash = '' } | |
56 | 56 … | else next() |
57 | 57 … | }) |
58 | 58 … | else next() |
59 | 59 … | |
@@ -116,9 +116,9 @@ | ||
116 | 116 … | } |
117 | 117 … | |
118 | 118 … | // If we are in the browser, |
119 | 119 … | // and do not already have a remote set, automatically trigger the invite. |
120 | - if(process.title == 'browser' && !localStorage.remote) attempt() | |
120 … | + // if(process.title == 'browser' && !localStorage.remote) attempt() | |
121 | 121 … | |
122 | 122 … | return div |
123 | 123 … | } |
124 | 124 … | } |
Built with git-ssb-web