Node.js based forum software built for the modern web
feat: show local users who follow (or are followed) by a remote user, on a remote user's profile
Julian Lama884681abfd8
diff --git a/src/controllers/accounts/follow.js b/src/controllers/accounts/follow.jsindex 7a28374582..f0659bcbe9 100644--- a/src/controllers/accounts/follow.js+++ b/src/controllers/accounts/follow.js@@ -31,7 +31,7 @@ async function getFollow(tpl, name, req, res, next) {payload.title = `[[pages:${tpl}, ${username}]]`;const method = name === 'following' ? 'getFollowing' : 'getFollowers';- payload.users = await user[method](res.locals.uid, start, stop);+ payload.users = await user[method](res.locals.userData.uid, start, stop);const count = name === 'following' ? followingCount : followerCount;const pageCount = Math.ceil(count / resultsPerPage);