while ($user->fetch()) {
$profile_ids[] = $user->id;
- common_debug("id = $user->id");
}
$profile = new Profile;
$cnt = $profile->find();
- common_debug("count = $cnt");
-
if ($cnt > 0) {
$featured = new ProfileList($profile);
$featured->show_list();
$replyto = $this->trimmed('inreplyto');
- common_debug("Replyto = $replyto\n");
-
$notice = Notice::saveNew($user->id, $content, 'web', 1, ($replyto == 'false') ? NULL : $replyto);
if (is_string($notice)) {
$orig_profile = clone($profile);
$profile->location = $location;
- common_debug('Old profile: ' . common_log_objstring($orig_profile), __FILE__);
- common_debug('New profile: ' . common_log_objstring($profile), __FILE__);
-
$result = $profile->update($orig_profile);
if (!$result) {
return;
}
- common_debug("notice: " . $apidata['api_arg']);
-
$fave = Fave::addNew($user, $notice);
if (!$fave) {
$action = $this->trimmed('action');
- common_debug("action = $action");
-
common_element_start('ul', array('id' => 'nav_views'));
common_menu_item(common_local_url('public'), _('Public'),
$twitter_status['in_reply_to_user_id'] = ($notice->reply_to) ? $this->replier_by_reply(intval($notice->reply_to)) : NULL;
if (isset($this->auth_user)) {
- common_debug("auth user set: " . $this->auth_user->nickname);
$twitter_status['favorited'] = ($this->auth_user->hasFave($notice)) ? 'true' : 'false';
} else {
- common_debug("no auth user set");
$twitter_status['favorited'] = 'false';
}