diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-10-22 19:31:21 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-10-22 19:31:21 -0300 |
commit | 273e47e24205f09bca04d8b014430fbc09ee5077 (patch) | |
tree | 4dfbf0b4f78c00ea6b72fede885e5945f4ccff2a /src | |
parent | e29d87b3fac1f0c6ac30f63cce744e1c45a9cc25 (diff) |
content: linkThing: fix not passing preferShortName through preview
Diffstat (limited to 'src')
-rw-r--r-- | src/content/dependencies/linkThing.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/content/dependencies/linkThing.js b/src/content/dependencies/linkThing.js index 7784afe7..166a857d 100644 --- a/src/content/dependencies/linkThing.js +++ b/src/content/dependencies/linkThing.js @@ -77,14 +77,15 @@ export default { const linkAttributes = slots.attributes; const wrapperAttributes = html.attributes(); + const name = + relations.name.slot('preferShortName', slots.preferShortName); + const showShortName = slots.preferShortName && !data.nameText && data.nameShort && data.nameShort !== data.name; - const name = relations.name; - const showWikiTooltip = (slots.tooltipStyle === 'auto' ? showShortName |