$this->user = User::staticGet('nickname', $nickname);
if (!$this->user) {
- common_user_error(_('No such nickname.'));
+ common_user_error(_('No such user.'));
return false;
} else {
return true;
$notice = DB_DataObject::factory('notice');
$notice->profile_id = $user->id; # user id === profile id
- $notice->orderBy('created DESC');
+ $notice->orderBy('created DESC, notice.id DESC');
if ($limit != 0) {
$notice->limit(0, $limit);
}