diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2024-09-11 20:36:03 -0300 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2024-09-11 20:36:03 -0300 |
commit | 43fd39b3be4c6f446f78711bf51142e27a3ee9e6 (patch) | |
tree | b30a1381b9e9c80f079a2ccea6e53c4aaca6f8cb | |
parent | 899d837193c169e59dfb8503a00493bdbc4d460e (diff) |
content: generateSocialEmbed: resolve to string in json mode
-rw-r--r-- | src/content/dependencies/generateSocialEmbed.js | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/content/dependencies/generateSocialEmbed.js b/src/content/dependencies/generateSocialEmbed.js index 0144c7fb..85a0f4d3 100644 --- a/src/content/dependencies/generateSocialEmbed.js +++ b/src/content/dependencies/generateSocialEmbed.js @@ -47,10 +47,12 @@ export default { return JSON.stringify({ author_name: (slots.headingContent - ? language.$('misc.socialEmbed.heading', { - wikiName: data.shortWikiName, - heading: slots.headingContent, - }) + ? html.resolve( + language.$('misc.socialEmbed.heading', { + wikiName: data.shortWikiName, + heading: slots.headingContent, + }), + {normalize: 'string'}) : undefined), author_url: |