Skip to content

Commit

Permalink
fix: invalid API call when unfollowing a user
Browse files Browse the repository at this point in the history
  • Loading branch information
psychobunny committed Feb 2, 2021
1 parent 526df41 commit 58655e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/src/client/account/header.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ define('forum/account/header', [
}

function toggleFollow(type) {
api[type === 'follow' ? 'put' : 'delete']('/users/' + ajaxify.data.uid + '/follow', undefined, function (err) {
api[type === 'follow' ? 'put' : 'del']('/users/' + ajaxify.data.uid + '/follow', undefined, function (err) {
if (err) {
return app.alertError(err);
}
Expand Down

0 comments on commit 58655e9

Please sign in to comment.