From: Mikael Nordfeldth Date: Sun, 5 Apr 2015 13:44:04 +0000 (+0200) Subject: Revert "Inverse logic error in OembedPlugin" X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f094918cf69fec48aa501b8ec0cfa4af87d11266;p=quix0rs-gnu-social.git Revert "Inverse logic error in OembedPlugin" This reverts commit 9ab996d9e6bee90e2f96a2a17e453a6deebd4a96. --- 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; }