From: Mikael Nordfeldth Date: Fri, 3 Apr 2015 18:59:56 +0000 (+0200) Subject: Inverse logic error in OembedPlugin X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9ab996d9e6bee90e2f96a2a17e453a6deebd4a96;p=quix0rs-gnu-social.git Inverse logic error in OembedPlugin --- 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; }