youtube is a special case

This commit is contained in:
Hannes Mannerheim 2016-01-20 18:40:27 +01:00
parent c44f7f4f41
commit 1b00c75700

View File

@ -2168,10 +2168,11 @@ function buildAttachmentHTML(attachments){
quotedNotices.push({url: this.url, html: quotedNoticeHTML});
}
// if we have oembed data
// if we have oembed data (but not for youtube, we handle that later)
else if(typeof this.oembed != 'undefined'
&& this.oembed !== false
&& this.oembed.title !== null) {
&& this.oembed.title !== null
&& this.oembed.provider != 'YouTube') {
var oembedImage = '';
// not if stripped from html it's the same as the title (wordpress does this..)