Revert "Inverse logic error in OembedPlugin"
This reverts commit 9ab996d9e6
.
This commit is contained in:
parent
c94d9994d8
commit
f094918cf6
|
@ -159,7 +159,7 @@ class OembedPlugin extends Plugin
|
||||||
// Never treat generic HTML links as an enclosure type!
|
// Never treat generic HTML links as an enclosure type!
|
||||||
// But if we have oEmbed info, we'll consider it golden.
|
// But if we have oEmbed info, we'll consider it golden.
|
||||||
$oembed = File_oembed::getKV('file_id', $file->id);
|
$oembed = File_oembed::getKV('file_id', $file->id);
|
||||||
if (!$oembed instanceof File_oembed && !in_array($oembed->type, array('photo', 'video'))) {
|
if (!$oembed instanceof File_oembed || !in_array($oembed->type, array('photo', 'video'))) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user