This commit is contained in:
Flummi
2023-04-28 07:04:06 +02:00
parent 44df4deea3
commit 8b6f68f2e9
11 changed files with 508 additions and 94 deletions

View File

@@ -161,6 +161,17 @@ export default new class {
}
return tags;
};
async hasTag(itemid, tagid) {
const tag = (await db`
select *
from "tags_assign"
where
item_id = ${+itemid} and
tag_id = ${+tagid}
limit 1
`).length;
return !!tag;
};
async detectNSFW(dest) {
return false;
const { stdout, stderr } = await exec(