From 711244cfdfd59d949ba972a304d64297bc790982 Mon Sep 17 00:00:00 2001
From: curben <2809763-curben@users.noreply.gitlab.com>
Date: Sun, 11 Aug 2019 11:42:36 +0930
Subject: [PATCH] fix(open_graph): skip image meta tags if post does not
contain
---
themes/typing/scripts/openGraph.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/themes/typing/scripts/openGraph.js b/themes/typing/scripts/openGraph.js
index 5cf8e1d..bf24c4c 100644
--- a/themes/typing/scripts/openGraph.js
+++ b/themes/typing/scripts/openGraph.js
@@ -66,7 +66,7 @@ function openGraphHelper (options = {}) {
.replace(/\n/g, ' ') // Replace new lines by spaces
}
- if (!images.length && content) {
+ if (!images.length && content && content.includes('