fix reaction
This commit is contained in:
parent
15fe9bea2a
commit
57043b3b9e
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user