]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Bookmark/bookmarkforurl.php
More info for a proper, fancy-url lighttpd setup
[quix0rs-gnu-social.git] / plugins / Bookmark / bookmarkforurl.php
index 018bd5c9e42a98740352ec007500767ca5017da2..4e6de9bffac6dad6128e41cbafcf6f46b36c89f1 100644 (file)
@@ -78,14 +78,20 @@ class BookmarkforurlAction extends Action
             throw new ClientException(_('Invalid URL.'), 400);
         }
 
-        $f = File::processNew($this->url);
+        $f = File::getKV('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);
+            $this->oembed    = File_oembed::getKV('file_id', $f->id);
             if (!empty($this->oembed)) {
                 $this->title = $this->oembed->title;
             }
-            $this->thumbnail = File_thumbnail::staticGet('file_id', $f->id);
+            $this->thumbnail = File_thumbnail::getKV('file_id', $f->id);
         }
 
         return true;