forked from GNUsocial/gnu-social
twiddle a few bits to make replies work correctly
darcs-hash:20080707054358-84dde-916977a2af4f792e0dc9e02a9f5344ec60911319.gz
This commit is contained in:
@@ -95,17 +95,8 @@ class User extends DB_DataObject
|
||||
return !in_array($nickname, $merged);
|
||||
}
|
||||
|
||||
function getCurrentNotice() {
|
||||
$notice = DB_DataObject::factory('notice');
|
||||
$profile = $this->getProfile();
|
||||
$notice->profile_id = $profile->id;
|
||||
$notice->limit(1);
|
||||
$notice->orderBy('created DESC');
|
||||
if ($notice->find()) {
|
||||
$notice->fetch();
|
||||
return $notice;
|
||||
}
|
||||
return NULL;
|
||||
}
|
||||
|
||||
function getCurrentNotice($dt=NULL) {
|
||||
$profile = $this->getProfile();
|
||||
return $profile->getCurrentNotice($dt);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user