]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Fix ticket #3016: when using non-AJAX form of the ostatus subscription initiation...
authorBrion Vibber <brion@pobox.com>
Wed, 26 Jan 2011 22:57:52 +0000 (14:57 -0800)
committerBrion Vibber <brion@pobox.com>
Wed, 26 Jan 2011 22:59:24 +0000 (14:59 -0800)
plugins/OStatus/actions/ostatusinit.php

index 91c36203c88ff8d0d6accae6a6f482f7a031177e..9832f33c057889b918d4ab931001683f9af46a31 100644 (file)
@@ -114,10 +114,15 @@ class OStatusInitAction extends Action
 
         $this->elementStart('ul', 'form_data');
         $this->elementStart('li', array('id' => 'ostatus_nickname'));
-        // TRANS: Field label.
-        $this->input('nickname', _m('User nickname'), $this->nickname,
-                     _m('Nickname of the user you want to follow.'));
-        $this->hidden('group', $this->group); // pass-through for magic links
+        if ($this->group) {
+            // TRANS: Field label.
+            $this->input('group', _m('Group nickname'), $this->group,
+                         _m('Nickname of the group you want to join.'));
+        } else {
+            // TRANS: Field label.
+            $this->input('nickname', _m('User nickname'), $this->nickname,
+                         _m('Nickname of the user you want to follow.'));
+        }
         $this->elementEnd('li');
         $this->elementStart('li', array('id' => 'ostatus_profile'));
         // TRANS: Field label.