Add 'statusnet_textarea' backward-compatibility

This commit is contained in:
Chimo 2015-02-10 10:53:24 -05:00
parent d816af9aa9
commit 7cea3f9f11

View File

@ -74,9 +74,9 @@ class NewnoticeAction extends FormAction
}
}
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');
}
/**