X-Git-Url: https://git.mxchange.org/?p=quix0rs-gnu-social.git;a=blobdiff_plain;f=lib%2Ftoselector.php;fp=lib%2Ftoselector.php;h=153d9001b54aef0882e291168083db9882d01638;hp=6d424dc259ccc8433c2e5996cd392bc16fe51dbe;hb=4160a3fb730113f3d712bd777884c4b0482f6df1;hpb=abd90bbdf562614755802885dfb5673645df8575 diff --git a/lib/toselector.php b/lib/toselector.php index 6d424dc259..153d9001b5 100644 --- a/lib/toselector.php +++ b/lib/toselector.php @@ -87,10 +87,9 @@ class ToSelector extends Widget $choices['public:everyone'] = _m('SENDTO','Everyone'); $default = 'public:everyone'; } - // XXX: better name...? // TRANS: Option in drop-down of potential addressees. // TRANS: %s is a StatusNet sitename. - $choices['public:site'] = sprintf(_('My colleagues at %s'), common_config('site', 'name')); + $choices['public:site'] = sprintf(_('Everyone at %s'), common_config('site', 'name')); $groups = $this->user->getGroups(); @@ -102,7 +101,16 @@ class ToSelector extends Widget $choices[$value] = $groups->getBestName(); } - // XXX: add users...? + // Add subscribed users to dropdown menu + $users = $this->user->getSubscribed(); + while ($users->fetch()) { + $value = 'profile:'.$users->id; + if ($this->user->streamNicknames()) { + $choices[$value] = $users->getNickname(); + } else { + $choices[$value] = $users->getBestName(); + } + } if ($this->to instanceof Profile) { $value = 'profile:'.$this->to->id;