X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FOStatus%2Factions%2Fostatusinit.php;h=9832f33c057889b918d4ab931001683f9af46a31;hb=fd8dad39633870d2d71c3829a756e724acb45c2a;hp=91c36203c88ff8d0d6accae6a6f482f7a031177e;hpb=a2090ecc97f93894ba6f833acde5f44058988510;p=quix0rs-gnu-social.git diff --git a/plugins/OStatus/actions/ostatusinit.php b/plugins/OStatus/actions/ostatusinit.php index 91c36203c8..9832f33c05 100644 --- a/plugins/OStatus/actions/ostatusinit.php +++ b/plugins/OStatus/actions/ostatusinit.php @@ -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.