[MEDIA][OEMBED] Fixed regression in OEmbed, because it relied on accessing the files directly, which previous commits broke. The File table really should have a bool...

This commit is contained in:
Miguel Dantas
2019-06-29 20:10:20 +01:00
committed by Diogo Cordeiro
parent 4187568522
commit 8f31a1a820
9 changed files with 117 additions and 52 deletions

View File

@@ -411,7 +411,7 @@ class OembedPlugin extends Plugin
* states where it isn't oEmbed data, so it doesn't mess up the event handle
* for other things hooked into it), or the exception if it fails.
*/
public function onCreateFileImageThumbnailSource(File $file, &$imgPath)
public function onCreateFileImageThumbnailSource(File $file, &$imgPath, $media)
{
// If we are on a private node, we won't do any remote calls (just as a precaution until
// we can configure this from config.php for the private nodes)