This commit is contained in:
syuilo 2019-04-26 00:54:11 +09:00
parent 16a4788387
commit bde2f84767

View file

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