hgdf
This commit is contained in:
@@ -34,7 +34,7 @@ export default async bot => {
|
||||
rows = await db`
|
||||
select id, mime, username, size
|
||||
from "items"
|
||||
where id >= ${randomId} and active = true
|
||||
where id >= ${randomId} and active = true and coalesce(visibility, 0) = 0
|
||||
order by id asc
|
||||
limit 1
|
||||
`;
|
||||
@@ -43,7 +43,7 @@ export default async bot => {
|
||||
rows = await db`
|
||||
select id, mime, username, size
|
||||
from "items"
|
||||
where active = true
|
||||
where active = true and coalesce(visibility, 0) = 0
|
||||
order by id asc
|
||||
limit 1
|
||||
`;
|
||||
@@ -54,7 +54,7 @@ export default async bot => {
|
||||
rows = await db`
|
||||
select id, mime, username, size
|
||||
from "items"
|
||||
where
|
||||
where active = true and coalesce(visibility, 0) = 0 and
|
||||
${args.map(a => a.charAt(0) === "!"
|
||||
? db`username not ilike ${a.slice(1)}`
|
||||
: db`username ilike ${a}`
|
||||
|
||||
Reference in New Issue
Block a user