From 58655e9a0bc4bf77d69269d7b310cc74c6454652 Mon Sep 17 00:00:00 2001 From: psychobunny Date: Tue, 2 Feb 2021 10:16:03 -0500 Subject: [PATCH] fix: invalid API call when unfollowing a user --- public/src/client/account/header.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/account/header.js b/public/src/client/account/header.js index a975025eb0..fa188d1da7 100644 --- a/public/src/client/account/header.js +++ b/public/src/client/account/header.js @@ -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); }