mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: show local users who follow (or are followed) by a remote user, on a remote user's profile
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user