From: Chimo Date: Sat, 6 Jun 2015 17:49:16 +0000 (-0400) Subject: Show nickname if user has oldschool option enabled X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=76c9971c31115801a1d2e8f66d6f521c28d632a4;p=quix0rs-gnu-social.git Show nickname if user has oldschool option enabled --- diff --git a/lib/toselector.php b/lib/toselector.php index 4c0bda3312..566b6a0f29 100644 --- a/lib/toselector.php +++ b/lib/toselector.php @@ -102,12 +102,16 @@ class ToSelector extends Widget $choices[$value] = $groups->getBestName(); } - // Add subscribed users to dropdown menu - $users = $this->user->getSubscribed(); - while ($users->fetch()) { - $value = 'profile:'.$users->id; - $choices[$value] = $users->getBestName(); - } + // 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;