]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/newnotice.php
Add 'statusnet_textarea' backward-compatibility
[quix0rs-gnu-social.git] / 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');
     }
 
     /**