« get me outta code hell

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:
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 b999ef7..406e0b3 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', {