fix reaction

This commit is contained in:
lvpq 2024-09-28 23:58:44 +09:00 committed by hijiki
parent 15fe9bea2a
commit 57043b3b9e

View File

@ -72,7 +72,11 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
this.cacheService.userBlockedCache.get(me.id), this.cacheService.userBlockedCache.get(me.id),
]); ]);
query.andWhere('reaction.userId NOT IN (:...userIds)', { userIds: Array.from(userIdsWhoMeMuting ?? []).concat(Array.from(userIdsWhoBlockingMe ?? [])) }); const userIds = Array.from(userIdsWhoMeMuting ?? []).concat(Array.from(userIdsWhoBlockingMe ?? []));
if (userIds.length > 0 ){
query.andWhere('reaction.userId NOT IN (:...userIds)', { userIds: Array.from(userIdsWhoMeMuting ?? []).concat(Array.from(userIdsWhoBlockingMe ?? [])) });
}
} }
if (ps.type) { if (ps.type) {