]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Moved favoriteNotices from User to Profile class
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 15 Oct 2013 00:15:58 +0000 (02:15 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 15 Oct 2013 00:15:58 +0000 (02:15 +0200)
classes/Profile.php
classes/User.php

index 5058fbce6836d91281e58cdc9bcb6b153c2ed229..cafaec5a3d18559ea12bc41ae2397d0686e848c2 100644 (file)
@@ -753,6 +753,11 @@ class Profile extends Managed_DataObject
         return $cnt;
     }
 
+    function favoriteNotices($own=false, $offset=0, $limit=NOTICES_PER_PAGE, $since_id=0, $max_id=0)
+    {
+        return Fave::stream($this->id, $offset, $limit, $own, $since_id, $max_id);
+    }
+
     function noticeCount()
     {
         $c = Cache::instance();
index 59cb4e1890735e6d708c06b272b1807b12602fc5..00a2319cfe73337e4093c96b28a5580906b5d3a9 100644 (file)
@@ -535,7 +535,7 @@ class User extends Managed_DataObject
 
     function favoriteNotices($own=false, $offset=0, $limit=NOTICES_PER_PAGE, $since_id=0, $max_id=0)
     {
-        return Fave::stream($this->id, $offset, $limit, $own, $since_id, $max_id);
+        return $this->getProfile()->favoriteNotices($own, $offset, $limit, $since_id, $max_id);
     }
 
     function noticeInbox($offset=0, $limit=NOTICES_PER_PAGE, $since_id=0, $before_id=0)