fix reaction
This commit is contained in:
parent
15fe9bea2a
commit
57043b3b9e
@ -72,8 +72,12 @@ export default class extends Endpoint<typeof meta, typeof paramDef> { // eslint-
|
|||||||
this.cacheService.userBlockedCache.get(me.id),
|
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 ?? [])) });
|
query.andWhere('reaction.userId NOT IN (:...userIds)', { userIds: Array.from(userIdsWhoMeMuting ?? []).concat(Array.from(userIdsWhoBlockingMe ?? [])) });
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (ps.type) {
|
if (ps.type) {
|
||||||
// ローカルリアクションはホスト名が . とされているが
|
// ローカルリアクションはホスト名が . とされているが
|
||||||
|
Loading…
Reference in New Issue
Block a user