diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-05-18 23:28:48 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-05-18 23:28:48 +0000 |
commit | 8d68c5238dfed8872e8ef3bf128d018cc974cdab (patch) | |
tree | 60434542677d1769ecb0cc657a3ea1a2d9be3e46 /classes/User.php | |
parent | 8b5bcae58fba59734a566315f04499fcc1433c75 (diff) | |
parent | 9261e48ef039869fb3709d374b7e4346d8773a49 (diff) |
Merge branch '0.8.x' of git@gitorious.org:laconica/dev into 0.8.x
Diffstat (limited to 'classes/User.php')
-rw-r--r-- | classes/User.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/classes/User.php b/classes/User.php index b5ac7b220..ea8ba4081 100644 --- a/classes/User.php +++ b/classes/User.php @@ -407,13 +407,22 @@ class User extends Memcached_DataObject return Notice::getStreamByIds($ids); } + function getTaggedNotices($tag, $offset=0, $limit=NOTICES_PER_PAGE, $since_id=0, $before_id=0, $since=null) { + $profile = $this->getProfile(); + if (!$profile) { + return null; + } else { + return $profile->getTaggedNotices($tag, $offset, $limit, $since_id, $before_id, $since); + } + } + function getNotices($offset=0, $limit=NOTICES_PER_PAGE, $since_id=0, $before_id=0, $since=null) { $profile = $this->getProfile(); if (!$profile) { return null; } else { - return $profile->getNotices($offset, $limit, $since_id, $before_id); + return $profile->getNotices($offset, $limit, $since_id, $before_id, $since); } } |