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,8 +72,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
this.cacheService.userBlockedCache.get(me.id),
]);
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) {
// ローカルリアクションはホスト名が . とされているが