This commit is contained in:
Tribalize
2021-06-13 18:07:57 -04:00
parent 399f58ffd7
commit 9cc745ac31
2 changed files with 5 additions and 5 deletions

View File

@@ -3,7 +3,7 @@ const utils = require('./utils')
const categories = require('./categories')
const path = require('path')
const sfwCategories = categories.filter(c => !c.nsfw).map(c => c.name)
const nsfwCategories = categories.filter(c => !c.nsfw).map(c => c.name)
const nsfwCategories = categories.filter(c => c.nsfw).map(c => c.name)
const parser = {}
@@ -232,7 +232,7 @@ class Channel {
}
}
isSFW() {
isNSFW() {
return sfwCategories.includes(this.category)
}