« get me outta code hell

data: Contribution.associatedContributions: prefix edits for wiki - 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>2024-08-15 13:09:02 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-08-15 13:38:20 -0300
commita94621687429e177b1bd3c7bb23ce5afd08e8135 (patch)
treef38d80d8803981dfbe4617df14fefa8ae4e9f790 /src/data/things
parent74f3e5a04088b5059e7587b71b15ba57cca61bc2 (diff)
data: Contribution.associatedContributions: prefix edits for wiki
Diffstat (limited to 'src/data/things')
-rw-r--r--src/data/things/contribution.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/data/things/contribution.js b/src/data/things/contribution.js
index 82ec1db3..2712af70 100644
--- a/src/data/things/contribution.js
+++ b/src/data/things/contribution.js
@@ -146,9 +146,9 @@ export class Contribution extends Thing {
         }) => continuation({
           ['#likeContributionsFilter']:
             contributionAnnotations.map(mappingAnnotation =>
-              (annotation === 'edits for wiki'
-                ? mappingAnnotation === annotation
-                : mappingAnnotation !== 'edits for wiki')),
+              (annotation?.startsWith(`edits for wiki`)
+                ? mappingAnnotation?.startsWith(`edits for wiki`)
+                : !mappingAnnotation?.startsWith(`edits for wiki`))),
         }),
       },