おすすめユーザーに自分自身を含まないように (#4803)

Fix #4790
This commit is contained in:
rinsuki 2019-04-26 00:52:58 +09:00 committed by syuilo
parent 535d10f469
commit 291e7e7943

View File

@ -44,6 +44,7 @@ export default define(meta, async (ps, me) => {
.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 })
.orderBy('user.followersCount', 'DESC');
generateMuteQueryForUsers(query, me);