mirror of
https://github.com/danbulant/dots-hyprland
synced 2026-05-24 12:22:09 +00:00
booru: avoid duplicate "rating:safe"
This commit is contained in:
parent
6e50396b4d
commit
cbfb8f6ddb
1 changed files with 1 additions and 1 deletions
|
|
@ -80,7 +80,7 @@ class BooruService extends Service {
|
|||
|
||||
async fetch(msg) {
|
||||
// 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)
|
||||
|
||||
let taglist = [];
|
||||
|
|
|
|||
Loading…
Reference in a new issue