Commit bddd9b24 authored by Jonne Haß's avatar Jonne Haß

flickr embedding doesn't break the JS anymore

parent e170829b
......@@ -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 '<img src="'+data.url+'" width="'+data.width+'" height="'+data.height+'" />';
} else {
return data.html || ""
}
}
}
})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment