forked from Shinonome/dots-hyprland
booru: avoid duplicate "rating:safe"
This commit is contained in:
@@ -80,7 +80,7 @@ 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.replace('rating:safe', '')}${(!this._nsfw || msg.includes('safe')) ? ' rating:safe' : ''}`.split(/\s+/);
|
||||||
console.log(userArgs)
|
console.log(userArgs)
|
||||||
|
|
||||||
let taglist = [];
|
let taglist = [];
|
||||||
|
|||||||
Reference in New Issue
Block a user