diff --git a/scripts/db.js b/scripts/db.js index 75cf792ff..58ee0dacb 100644 --- a/scripts/db.js +++ b/scripts/db.js @@ -83,6 +83,11 @@ db.channels = { }) } + if (!this.nsfw) { + output = output.filter(channel => !channel.isNSFW()) + } + + this.nsfw = true this.duplicates = true this.filter = null @@ -93,6 +98,11 @@ db.channels = { return this }, + removeNSFW() { + this.nsfw = false + + return this + }, all() { return this.list },