]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/AnonymousFave/actions/anondisfavor.php
Improved type-hint for following methods:
[quix0rs-gnu-social.git] / plugins / AnonymousFave / actions / anondisfavor.php
index 15f1040b7c4a30fd94977335970eab91e540a620..1e42ca652bef22ca4763976cf0ec3d7308876ecd 100644 (file)
@@ -47,7 +47,7 @@ class AnonDisfavorAction extends RedirectingAction
      *
      * @return void
      */
-    function handle($args)
+    function handle(array $args=array())
     {
         parent::handle($args);
 
@@ -80,7 +80,7 @@ class AnonDisfavorAction extends RedirectingAction
             $this->serverError(_m('Could not delete favorite.'));
         }
 
-        $profile->blowFavesCache();
+        Fave::blowCacheForProfileId($profile->id);
 
         if ($this->boolean('ajax')) {
             $this->startHTML('text/xml;charset=utf-8');