From 7cea3f9f1185fad49ac9f83c02549a47e213b253 Mon Sep 17 00:00:00 2001 From: Chimo Date: Tue, 10 Feb 2015 10:53:24 -0500 Subject: [PATCH] Add 'statusnet_textarea' backward-compatibility --- actions/newnotice.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/actions/newnotice.php b/actions/newnotice.php index 0432064a42..692ba765c8 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -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'); } /**