]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Bookmark/actions/newbookmark.php
Stronger typing for NoticeListItem and so
[quix0rs-gnu-social.git] / plugins / Bookmark / actions / newbookmark.php
index 1c7dd5bc62f6d6444f102bff1368e5d30ab6aeb3..bc043f41ed51e01eafdde5878efde1fb4e07f4ae 100644 (file)
@@ -178,7 +178,7 @@ class NewbookmarkAction extends Action
             $this->elementEnd('body');
             $this->endHTML();
         } else {
-            common_redirect($saved->bestUrl(), 303);
+            common_redirect($saved->getUrl(), 303);
         }
     }
 
@@ -191,7 +191,7 @@ class NewbookmarkAction extends Action
      *
      * @return void
      */
-    function showNotice($notice)
+    function showNotice(Notice $notice)
     {
         class_exists('NoticeList'); // @fixme hack for autoloader
         $nli = new NoticeListItem($notice, $this);