This commit is contained in:
syuilo 2019-04-26 00:54:11 +09:00
parent 291e7e7943
commit 2b8187f7ab
No known key found for this signature in database
GPG key ID: BDC4C49D06AB9D69

View file

@ -42,9 +42,9 @@ export const meta = {
export default define(meta, async (ps, me) => {
const query = Users.createQueryBuilder('user')
.where('user.isLocked = FALSE')
.where('user.host IS NULL')
.where('user.updatedAt >= :date', { date: new Date(Date.now() - ms('7days')) })
.where('user.id != :meId', { meId: me.id })
.andWhere('user.host IS NULL')
.andWhere('user.updatedAt >= :date', { date: new Date(Date.now() - ms('7days')) })
.andWhere('user.id != :meId', { meId: me.id })
.orderBy('user.followersCount', 'DESC');
generateMuteQueryForUsers(query, me);