forked from Shinonome/dots-hyprland
booru: fix nsfw filter
This commit is contained in:
@@ -80,7 +80,8 @@ class BooruService extends Service {
|
|||||||
|
|
||||||
async fetch(msg) {
|
async fetch(msg) {
|
||||||
// Init
|
// 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 taglist = [];
|
||||||
let page = 1;
|
let page = 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user