LinkPreview: use a local proxy for oEmbed lookups so we use a consistent common code path, and don't open up to oohembed.com being evil

This commit is contained in:
Brion Vibber
2010-11-16 14:41:30 -08:00
parent b5fc71253c
commit 73f28ffabe
2 changed files with 9 additions and 9 deletions

View File

@@ -54,12 +54,11 @@
url: url,
format: 'json',
maxwidth: oEmbed.width,
maxheight: oEmbed.height,
callback: '?'
maxheight: oEmbed.height
};
$.get(oEmbed.api, params, function(data, xhr) {
callback(data);
}, 'jsonp');
}, 'json');
}
};