]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add 'statusnet_textarea' backward-compatibility
authorChimo <chimo@chromic.org>
Tue, 10 Feb 2015 15:53:24 +0000 (10:53 -0500)
committerChimo <chimo@chromic.org>
Tue, 10 Feb 2015 15:53:24 +0000 (10:53 -0500)
actions/newnotice.php

index 0432064a42b9df2ae9154d8120f7170f0da3a1ff..692ba765c8a4dd485b25abb0930e24c3a23b7f2d 100644 (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');
     }
 
     /**