class BookmarkforurlAction extends Action
{
- protected $url;
- protected $oembed;
- protected $thumbnail;
+ protected $url = null;
+ protected $oembed = null;
+ protected $thumbnail = null;
+ protected $title = null;
/**
* For initializing members of the class.
throw new ClientException(_('Invalid URL.'), 400);
}
- $f = File::processNew($this->url);
+ $f = File::staticGet('url', $this->url);
+
+ if (empty($url)) {
+ $f = File::processNew($this->url);
+ }
+
+ // How about now?
if (!empty($f)) {
$this->oembed = File_oembed::staticGet('file_id', $f->id);