Node.js based forum software built for the modern web
fix: frontend follow logic, as uid is no longer webfinger slug
Julian Lamfcca9259b46b
diff --git a/public/src/client/account/header.js b/public/src/client/account/header.jsindex 9aae8d6a8f..1e4a570b8f 100644--- a/public/src/client/account/header.js+++ b/public/src/client/account/header.js@@ -108,7 +108,8 @@ define('forum/account/header', [}function toggleFollow(type) {- api[type === 'follow' ? 'put' : 'del']('/users/' + ajaxify.data.uid + '/follow', undefined, function (err) {+ const target = isFinite(ajaxify.data.uid) ? ajaxify.data.uid : encodeURIComponent(ajaxify.data.userslug);+ api[type === 'follow' ? 'put' : 'del']('/users/' + target + '/follow', undefined, function (err) {if (err) {return alerts.error(err);}