mirror of
https://github.com/misskey-dev/misskey.git
synced 2025-01-13 01:11:07 +09:00
Fix bug
This commit is contained in:
parent
e5409db0e8
commit
a6befdd541
@ -53,6 +53,7 @@ export default define(meta, async (ps) => {
|
|||||||
if (blackDomains.length > 0) {
|
if (blackDomains.length > 0) {
|
||||||
query.andWhere(new Brackets(qb => {
|
query.andWhere(new Brackets(qb => {
|
||||||
for (const blackDomain of blackDomains) {
|
for (const blackDomain of blackDomains) {
|
||||||
|
qb.andWhere(new Brackets(qb => {
|
||||||
const subDomains = blackDomain.split('.');
|
const subDomains = blackDomain.split('.');
|
||||||
let i = 0;
|
let i = 0;
|
||||||
for (const subDomain of subDomains) {
|
for (const subDomain of subDomains) {
|
||||||
@ -63,6 +64,7 @@ export default define(meta, async (ps) => {
|
|||||||
qb.orWhere(`log.domain[${i + 1}] != :${p}`, { [p]: subDomain });
|
qb.orWhere(`log.domain[${i + 1}] != :${p}`, { [p]: subDomain });
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user