git.gnu.io has moved to IP address 209.51.188.249 -- please double check where you are logging in.

Commit f094918c authored by mmn's avatar mmn

Revert "Inverse logic error in OembedPlugin"

This reverts commit 9ab996d9.
parent c94d9994
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment