forked from GNUsocial/gnu-social
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:
@@ -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');
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user