Commit 4e8d7795 authored by mmn's avatar mmn

Moved favoriteNotices from User to Profile class

parent fdbb528e
......@@ -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();
......
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment