From 9ab996d9e6bee90e2f96a2a17e453a6deebd4a96 Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Fri, 3 Apr 2015 20:59:56 +0200 Subject: [PATCH] Inverse logic error in OembedPlugin --- 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 44e5d1a72b..84886a2bd3 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; } -- 2.39.5