From bddd9b244f9552a950593193d60d289358ed5956 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Thu, 26 Jan 2012 05:38:43 +0100 Subject: [PATCH] flickr embedding doesn't break the JS anymore --- public/javascripts/app/views/content_view.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/javascripts/app/views/content_view.js b/public/javascripts/app/views/content_view.js index 62188da47..5f593bf3f 100644 --- a/public/javascripts/app/views/content_view.js +++ b/public/javascripts/app/views/content_view.js @@ -8,7 +8,12 @@ app.views.Content = app.views.StreamObject.extend({ function embedHTML(model){ if(!model.get("o_embed_cache")) { return ""; } - return model.get("o_embed_cache").data.html + var data = model.get("o_embed_cache").data; + if(data.type == "photo") { + return ''; + } else { + return data.html || "" + } } } })