« get me outta code hell

content: generateSocialEmbed: resolve to string in json mode - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
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
commit43fd39b3be4c6f446f78711bf51142e27a3ee9e6 (patch)
treeb30a1381b9e9c80f079a2ccea6e53c4aaca6f8cb /src
parent899d837193c169e59dfb8503a00493bdbc4d460e (diff)
content: generateSocialEmbed: resolve to string in json mode
Diffstat (limited to 'src')
-rw-r--r--src/content/dependencies/generateSocialEmbed.js10
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: