diff options
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; } |