« 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/data
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/data
parent7428243928735ab89e1fd3d450988269e765d0af (diff)
yaml: don't write filtered-out contribs
Diffstat (limited to 'src/data')
-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 5a4e87e..819c639 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) {