fix: invalid API call when unfollowing a user

v1.18.x
psychobunny 4 years ago
parent 526df41db1
commit 58655e9a0b

@ -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);
}

Loading…
Cancel
Save