From: aroquen Date: Sat, 6 Jun 2015 13:15:10 +0000 (+0200) Subject: Add subscribed users to dropdown menu. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e46dcc0cc4285d3112589e2409625315f5d2336b;p=quix0rs-gnu-social.git Add subscribed users to dropdown menu. --- diff --git a/lib/toselector.php b/lib/toselector.php index 6d424dc259..4c0bda3312 100644 --- a/lib/toselector.php +++ b/lib/toselector.php @@ -102,7 +102,12 @@ 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; + $choices[$value] = $users->getBestName(); + } if ($this->to instanceof Profile) { $value = 'profile:'.$this->to->id;