]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Oembed/OembedPlugin.php
Merge branch 'fixtests' into 'nightly'
[quix0rs-gnu-social.git] / plugins / Oembed / OembedPlugin.php
index 716649c68cd99dadf5f120204a7304f0a30f6e3f..64e3e8940c0ea7da7602a0a6b38b08c9322c8ced 100644 (file)
@@ -174,7 +174,9 @@ class OembedPlugin extends Plugin
                 if ($oembed_data === false) {
                     throw new Exception('Did not get oEmbed data from URL');
                 }
+                $file->setTitle($oembed_data->title);
             } catch (Exception $e) {
+                common_log(LOG_WARNING, sprintf(__METHOD__.': %s thrown when getting oEmbed data: %s', get_class($e), _ve($e->getMessage())));
                 return true;
             }