Show nickname if user has oldschool option enabled

This commit is contained in:
Chimo 2015-06-06 13:49:16 -04:00 committed by aroquen
parent e46dcc0cc4
commit 76c9971c31

View File

@ -106,8 +106,12 @@ class ToSelector extends Widget
$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;