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 || "" + } } } })