From 2e712008431e0e1dfa7a3126801f72c9cf505762 Mon Sep 17 00:00:00 2001 From: Jeremy Zhang Date: Mon, 20 Nov 2017 23:10:06 +0000 Subject: [PATCH] Add support for both link and video embeds as rich embeds --- webapp/titanembeds/static/js/embed.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webapp/titanembeds/static/js/embed.js b/webapp/titanembeds/static/js/embed.js index f7b823d..d433724 100644 --- a/webapp/titanembeds/static/js/embed.js +++ b/webapp/titanembeds/static/js/embed.js @@ -905,7 +905,7 @@ var emb = []; for (var i = 0; i < embeds.length; i++) { var disembed = embeds[i]; - if (disembed.type != "rich") { + if ($.inArray(disembed.type, ["rich", "link", "video"]) == -1) { continue; } disembed.toRenderFooter = false;