forked from GNUsocial/gnu-social
try to check whether file exists over and over and over
This commit is contained in:
@@ -78,7 +78,13 @@ class BookmarkforurlAction extends Action
|
||||
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);
|
||||
|
Reference in New Issue
Block a user