« get me outta code hell

yaml: don't write filtered-out contribs - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-01-15 19:38:19 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-01-16 16:33:13 -0400
commitf03f63079b395cb2bf693ce4130546ffe93a319d (patch)
treecf88bbe1e29a5bb1d8924c7c4b36a188a64ba2fa /src
parent7428243928735ab89e1fd3d450988269e765d0af (diff)
yaml: don't write filtered-out contribs
Diffstat (limited to 'src')
-rw-r--r--src/data/yaml.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/data/yaml.js b/src/data/yaml.js
index 5a4e87e3..819c639f 100644
--- a/src/data/yaml.js
+++ b/src/data/yaml.js
@@ -1783,6 +1783,15 @@ export function filterReferenceErrors(wikiData) {
 
                 writeProperty = false;
                 break;
+
+              case '_contrib':
+                // Don't write out contributions - these'll be filtered out
+                // for content and data purposes automatically, and they're
+                // handy to keep around when update values get checked for
+                // art tags below. (Possibly no reference-related properties
+                // need writing, humm...)
+                writeProperty = false;
+                break;
             }
 
             if (value === undefined) {