diff options
author | Brion Vibber <brion@pobox.com> | 2010-03-11 11:01:01 -0800 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-03-11 11:01:01 -0800 |
commit | ce92bc71431ec878c391b1ac6e16fd59cafd50b1 (patch) | |
tree | f1f3ee9404cab29c578a6c11baff08d20d60c8e7 /classes/User.php | |
parent | 66518df4356ea878bfd8693191f0354caebfb549 (diff) |
Drop timestamp cutoff parameter from User::getCurrentNotice() and Profile::getCurrentNotice().
It's not currently used, and won't be efficient when we update the notice.profile_id_idx index to optimize for our id-based sorting when pulling user post lists for profile pages, feeds etc.
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 aa9fbf948..330da039b 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() |