This commit is contained in:
syuilo 2021-10-20 01:15:14 +09:00
parent 29bd33f3f1
commit e01348d620

View file

@ -91,14 +91,14 @@ export default define(meta, async (ps, me) => {
.andWhere('user.isSuspended = FALSE')
.andWhere('user.usernameLower LIKE :username', { username: ps.username.toLowerCase() + '%' })
.andWhere('user.updatedAt IS NOT NULL');
otherQuery.setParameters(followingQuery.getParameters());
const otherUsers = await otherQuery
.orderBy('user.updatedAt', 'DESC')
.take(ps.limit! - users.length)
.getMany();
users = users.concat(otherUsers);
}
} else {