« get me outta code hell

Additional Files styling improvements - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2022-05-18 16:26:48 -0300
committer(quasar) nebula <qznebula@protonmail.com>2022-05-18 16:26:48 -0300
commit474704fac9104cf3ec5425cb84dad7203555dd96 (patch)
treeba396f4b398b4b339aa7fb13c7492db32b37ba85 /src/upd8.js
parentebded2fc40c3ff2faead343b9f68d768e6db2c32 (diff)
Additional Files styling improvements
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/upd8.js b/src/upd8.js
index b999ef7f..406e0b3d 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -1133,6 +1133,8 @@ writePage.oEmbedJSON = (pageInfo, {
     const { wikiInfo } = wikiData;
     const { canonicalBase, nameShort } = wikiInfo;
 
+    if (!socialEmbed) return '';
+
     const entries = [
         socialEmbed.heading && ['author_name',
             language.$('misc.socialEmbed.heading', {