fix: #11723, fix pagination on following/follower page

isekai-main
Barış Soner Uşaklı 2 years ago
parent f10a2d2e98
commit 4e146eb50b

@ -15,7 +15,11 @@ followController.getFollowers = async function (req, res, next) {
};
async function getFollow(tpl, name, req, res) {
const { username, userslug, followerCount, followingCount } = await user.getUserFields(res.locals.uid, ['username', 'userslug']);
const {
username, userslug, followerCount, followingCount,
} = await user.getUserFields(res.locals.uid, [
'username', 'userslug', 'followerCount', 'followingCount',
]);
const page = parseInt(req.query.page, 10) || 1;
const resultsPerPage = 50;

Loading…
Cancel
Save