From: Mikael Nordfeldth Date: Sat, 23 Jul 2016 19:01:28 +0000 (+0200) Subject: Using File->setTitle in oEmbed X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=563b3b1328c5fdb449847d2758cba47a06d7cf8b;p=quix0rs-gnu-social.git Using File->setTitle in oEmbed --- diff --git a/plugins/Oembed/OembedPlugin.php b/plugins/Oembed/OembedPlugin.php index 716649c68c..187b4b9819 100644 --- a/plugins/Oembed/OembedPlugin.php +++ b/plugins/Oembed/OembedPlugin.php @@ -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_WARN, sprintf(__METHOD__.': %s thrown when getting oEmbed data: %s', get_class($e), _ve($e->getMessage()))); return true; }