diff options
| author | (quasar) nebula <qznebula@protonmail.com> | 2026-01-26 18:15:31 -0400 |
|---|---|---|
| committer | (quasar) nebula <qznebula@protonmail.com> | 2026-01-26 18:15:31 -0400 |
| commit | 508bb73b3aca23e9c6b1246360c157d29614c10b (patch) | |
| tree | 24e016f1fa0c9ca4390f7a103a4865203d2c7a88 /src/content/dependencies/linkContribution.js | |
| parent | 369dd12dc6be63128e296ead9d9149df3df99c00 (diff) | |
content: linkContribution: drop trimAnnotation, format from parts
Diffstat (limited to 'src/content/dependencies/linkContribution.js')
| -rw-r--r-- | src/content/dependencies/linkContribution.js | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/content/dependencies/linkContribution.js b/src/content/dependencies/linkContribution.js index aa9bdef9..46c07e5d 100644 --- a/src/content/dependencies/linkContribution.js +++ b/src/content/dependencies/linkContribution.js @@ -11,7 +11,7 @@ export default { }), data: (contribution) => ({ - annotation: contribution.annotation, + annotationParts: contribution.annotationParts, urls: contribution.artist.urls, }), @@ -22,8 +22,6 @@ export default { showExternalLinks: {type: 'boolean', default: false}, showChronology: {type: 'boolean', default: false}, - trimAnnotation: {type: 'boolean', default: false}, - preventWrapping: {type: 'boolean', default: false}, preventTooltip: {type: 'boolean', default: false}, @@ -69,11 +67,9 @@ export default { })); const annotation = - (slots.trimAnnotation - ? data.annotation?.replace(/^edits for wiki(: )?/, '') - : data.annotation); + language.formatUnitList(data.annotationParts); - if (slots.showAnnotation && annotation) { + if (slots.showAnnotation && !html.isBlank(annotation)) { workingCapsule += '.withContribution'; workingOptions.contrib = annotation; } |