mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-25 04:42:14 +00:00
booru: fix nsfw filter
This commit is contained in:
parent
1e297a54d1
commit
c40f7bbe01
1 changed files with 2 additions and 1 deletions
|
|
@ -80,7 +80,8 @@ class BooruService extends Service {
|
|||
|
||||
async fetch(msg) {
|
||||
// Init
|
||||
const userArgs = `${msg}${this._nsfw || !msg.includes('safe') ? '' : ' rating:safe'}`.split(/\s+/);
|
||||
const userArgs = `${msg}${(!this._nsfw || msg.includes('safe')) ? ' rating:safe' : ''}`.split(/\s+/);
|
||||
console.log(userArgs)
|
||||
|
||||
let taglist = [];
|
||||
let page = 1;
|
||||
|
|
|
|||
Loading…
Reference in a new issue