]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Add subscribed users to dropdown menu.
authoraroquen <aroquen@sfr.fr>
Sat, 6 Jun 2015 13:15:10 +0000 (15:15 +0200)
committeraroquen <aroquen@sfr.fr>
Sat, 6 Jun 2015 21:07:13 +0000 (23:07 +0200)
lib/toselector.php

index 6d424dc259ccc8433c2e5996cd392bc16fe51dbe..4c0bda33124b669d3486b7a1295a93b15204cbd2 100644 (file)
@@ -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;