We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64a9223 commit bf6b42aCopy full SHA for bf6b42a
lib/User.js
@@ -150,7 +150,7 @@ class User extends Requestable {
150
* @return {Promise} - the promise for the http request
151
*/
152
follow(username, cb) {
153
- return this._request('PUT', `/user/following/${this.__user}`, null, cb);
+ return this._request('PUT', `/user/following/${username}`, null, cb);
154
}
155
156
/**
@@ -161,7 +161,7 @@ class User extends Requestable {
161
162
163
unfollow(username, cb) {
164
- return this._request('DELETE', `/user/following/${this.__user}`, null, cb);
+ return this._request('DELETE', `/user/following/${username}`, null, cb);
165
166
167
0 commit comments