Show nickname if user has oldschool option enabled
This commit is contained in:
parent
e46dcc0cc4
commit
76c9971c31
|
@ -102,12 +102,16 @@ class ToSelector extends Widget
|
||||||
$choices[$value] = $groups->getBestName();
|
$choices[$value] = $groups->getBestName();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add subscribed users to dropdown menu
|
// Add subscribed users to dropdown menu
|
||||||
$users = $this->user->getSubscribed();
|
$users = $this->user->getSubscribed();
|
||||||
while ($users->fetch()) {
|
while ($users->fetch()) {
|
||||||
$value = 'profile:'.$users->id;
|
$value = 'profile:'.$users->id;
|
||||||
$choices[$value] = $users->getBestName();
|
if ($this->user->streamNicknames()) {
|
||||||
}
|
$choices[$value] = $users->getNickname();
|
||||||
|
} else {
|
||||||
|
$choices[$value] = $users->getBestName();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if ($this->to instanceof Profile) {
|
if ($this->to instanceof Profile) {
|
||||||
$value = 'profile:'.$this->to->id;
|
$value = 'profile:'.$this->to->id;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user