// TRANS: Page title after sending a notice.
return _('Notice posted');
}
+ if ($this->int('inreplyto')) {
+ return _m('TITLE', 'New reply');
+ }
// TRANS: Page title for sending a new notice.
return _m('TITLE','New notice');
}
}
}
- if ($this->trimmed('content')) {
- $this->formOpts['content'] = $this->trimmed('content');
- }
+ // Backwards compatibility for "share this" widget things.
+ // If no 'content', use 'status_textarea'
+ $this->formOpts['content'] = $this->trimmed('content') ?: $this->trimmed('status_textarea');
}
/**
$cmd = $inter->handle_command($user, $content);
if ($cmd) {
- if (StatusNet::isAjax()) {
+ if (GNUsocial::isAjax()) {
$cmd->execute(new AjaxWebChannel($this));
} else {
$cmd->execute(new WebChannel($this));
Notice::maxContent()));
}
- $replyto = intval($this->trimmed('inreplyto'));
+ $replyto = $this->int('inreplyto');
if ($replyto) {
$options['reply_to'] = $replyto;
}
Event::handle('EndSaveNewNoticeWeb', array($this, $user, &$content_shortened, &$options));
- if (!StatusNet::isAjax()) {
+ if (!GNUsocial::isAjax()) {
$url = common_local_url('shownotice', array('notice' => $this->stored->id));
common_redirect($url, 303);
}