Moved favoriteNotices from User to Profile class

This commit is contained in:
Mikael Nordfeldth 2013-10-15 02:15:58 +02:00
parent fdbb528e7a
commit 4e8d7795d0
2 changed files with 6 additions and 1 deletions

View 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();

View 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)