« get me outta code hell

data, checks: Track.{referenced,sampled}Tracks: main releases only - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data/things
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-10-03 19:21:43 -0300
committer(quasar) nebula <qznebula@protonmail.com>2025-10-03 19:22:15 -0300
commit84afb5dabf98b8822b3433baca8e02896df04048 (patch)
tree376bb783edce8d34f24e334645f822e1a1624d74 /src/data/things
parent7ae1f20d46669be1e8354da1da83888de60814cc (diff)
data, checks: Track.{referenced,sampled}Tracks: main releases only
Cheats a degree of immunity to secrelease shenanigans by making
(musical) track references universally *never* point to a track
with a "Main Release" field (i.e. a seconday release).

Still, #checks continues to detect and error when you're really
pointing to a secondary release, and shouldn't be doing that.
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/track.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data/things/track.js b/src/data/things/track.js
index 110769e0..1871e86b 100644
--- a/src/data/things/track.js
+++ b/src/data/things/track.js
@@ -398,7 +398,7 @@ export class Track extends Thing {
 
       referenceList({
         class: input.value(Track),
-        find: soupyFind.input('track'),
+        find: soupyFind.input('trackMainReleasesOnly'),
       }),
     ],
 
@@ -409,7 +409,7 @@ export class Track extends Thing {
 
       referenceList({
         class: input.value(Track),
-        find: soupyFind.input('track'),
+        find: soupyFind.input('trackMainReleasesOnly'),
       }),
     ],