]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Favorite/actions/atompubfavoritefeed.php
More Favorite pluginification (favecount, cache, menus(favecount, cache, menus))
[quix0rs-gnu-social.git] / plugins / Favorite / actions / atompubfavoritefeed.php
index 837a9da3e96d7784ad3921c20560e6b38773e50f..69ae442a41cb6b60264008e0cf2cb112871a04c6 100644 (file)
@@ -269,8 +269,8 @@ class AtompubfavoritefeedAction extends ApiAuthAction
 
             $fave = Fave::addNew($profile, $notice);
 
-            if (!empty($fave)) {
-                $this->_profile->blowFavesCache();
+            if ($fave instanceof Fave) {
+                Fave::blowCacheForProfileId($this->_profile->id);
                 $this->notify($fave, $notice, $this->auth_user);
             }