From 43fd39b3be4c6f446f78711bf51142e27a3ee9e6 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Wed, 11 Sep 2024 20:36:03 -0300 Subject: content: generateSocialEmbed: resolve to string in json mode --- src/content/dependencies/generateSocialEmbed.js | 10 ++++++---- 1 file 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: -- cgit 1.3.0-6-gf8a5