From f094918cf69fec48aa501b8ec0cfa4af87d11266 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Sun, 5 Apr 2015 15:44:04 +0200 Subject: [PATCH] Revert "Inverse logic error in OembedPlugin" This reverts commit 9ab996d9e6bee90e2f96a2a17e453a6deebd4a96. --- plugins/Oembed/OembedPlugin.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/Oembed/OembedPlugin.php b/plugins/Oembed/OembedPlugin.php index 3e6b6205c0..c014b65cfb 100644 --- a/plugins/Oembed/OembedPlugin.php +++ b/plugins/Oembed/OembedPlugin.php @@ -159,7 +159,7 @@ class OembedPlugin extends Plugin // Never treat generic HTML links as an enclosure type! // But if we have oEmbed info, we'll consider it golden. $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; }