« get me outta code hell

fix art tag content warnings - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/page
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-03-05 21:58:58 -0400
committer(quasar) nebula <qznebula@protonmail.com>2022-03-05 21:58:58 -0400
commita434abad9684831d142aa543b0cb8d46600b4f39 (patch)
treec39f89c7a4e2b42538df260ef0099189cce6121d /src/page
parentc5b42b7883025bb3464b52248567133cd0658959 (diff)
fix art tag content warnings
Diffstat (limited to 'src/page')
-rw-r--r--src/page/tag.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/page/tag.js b/src/page/tag.js
index d7706458..f911d84b 100644
--- a/src/page/tag.js
+++ b/src/page/tag.js
@@ -11,7 +11,7 @@ export function condition({wikiData}) {
 }
 
 export function targets({wikiData}) {
-    return wikiData.artTagData.filter(tag => !tag.isCW);
+    return wikiData.artTagData.filter(tag => !tag.isContentWarning);
 }
 
 export function write(tag, {wikiData}) {
@@ -82,7 +82,7 @@ function generateTagNav(tag, {
     wikiData
 }) {
     const previousNextLinks = generatePreviousNextLinks(tag, {
-        data: wikiData.artTagData.filter(tag => !tag.isCW),
+        data: wikiData.artTagData.filter(tag => !tag.isContentWarning),
         linkKey: 'tag'
     });