]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert "Inverse logic error in OembedPlugin"
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 5 Apr 2015 13:44:04 +0000 (15:44 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 5 Apr 2015 13:44:04 +0000 (15:44 +0200)
This reverts commit 9ab996d9e6bee90e2f96a2a17e453a6deebd4a96.

plugins/Oembed/OembedPlugin.php

index 3e6b6205c0278e2e8e37c3124cd38f1694114198..c014b65cfb28148be4535502170a4cb7f673b7f7 100644 (file)
@@ -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;
         }