function prepare($args)
{
parent::prepare($args);
+ if ($this->boolean('ajax')) {
+ StatusNet::setApi(true);
+ }
$id = $this->arg('notice');
parent::handle($args);
if ($this->boolean('ajax')) {
- StatusNet::setApi(true);
$this->showAjax();
} else {
if ($this->notice->is_local == Notice::REMOTE_OMB) {