feat: show local users who follow (or are followed) by a remote user, on a remote user's profile

This commit is contained in:
Julian Lam
2024-07-19 14:36:17 -04:00
parent 5c9ac5d330
commit a884681abf

View File

@@ -31,7 +31,7 @@ async function getFollow(tpl, name, req, res, next) {
payload.title = `[[pages:${tpl}, ${username}]]`; payload.title = `[[pages:${tpl}, ${username}]]`;
const method = name === 'following' ? 'getFollowing' : 'getFollowers'; 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 count = name === 'following' ? followingCount : followerCount;
const pageCount = Math.ceil(count / resultsPerPage); const pageCount = Math.ceil(count / resultsPerPage);