diff options
author | Sarven Capadisli <csarven@status.net> | 2010-03-11 16:39:07 -0500 |
---|---|---|
committer | Sarven Capadisli <csarven@status.net> | 2010-03-11 16:39:07 -0500 |
commit | 4c320872d92e4323c2566013034dbea45b309065 (patch) | |
tree | bc024cf3a925d84de58180af3d2c0c15dd35e166 /classes/User.php | |
parent | c6f09306b1c72296db8b55500a5d6a2ea8cd5dd2 (diff) | |
parent | 512e51105372daf9c85af9284de1463084f03aa9 (diff) |
Merge branch 'testing' of git@gitorious.org:statusnet/mainline into 0.9.x
Diffstat (limited to 'classes/User.php')
-rw-r--r-- | classes/User.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/classes/User.php b/classes/User.php index fade0f35d..77091fad5 100644 --- a/classes/User.php +++ b/classes/User.php @@ -132,13 +132,18 @@ class User extends Memcached_DataObject return !in_array($nickname, $blacklist); } - function getCurrentNotice($dt=null) + /** + * Get the most recent notice posted by this user, if any. + * + * @return mixed Notice or null + */ + function getCurrentNotice() { $profile = $this->getProfile(); if (!$profile) { return null; } - return $profile->getCurrentNotice($dt); + return $profile->getCurrentNotice(); } function getCarrier() |