]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/newnotice.php
ToSelector widget to send private notices
[quix0rs-gnu-social.git] / actions / newnotice.php
index 3e601ae3628ce1c71151e91569d63666faa49e64..f48134c3b21e5743d449858644ea6b6652a23ece 100644 (file)
@@ -209,6 +209,10 @@ class NewnoticeAction extends Action
         $author_id = $user->id;
         $text      = $content_shortened;
 
+        // Does the heavy-lifting for getting "To:" information
+
+        ToSelector::fillOptions($this, $options);
+
         if (Event::handle('StartNoticeSaveWeb', array($this, &$author_id, &$text, &$options))) {
 
             $notice = Notice::saveNew($user->id, $content_shortened, 'web', $options);
@@ -344,7 +348,9 @@ class NewnoticeAction extends Action
             $inreplyto = null;
         }
 
-        $notice_form = new NoticeForm($this, '', $content, null, $inreplyto);
+        $notice_form = new NoticeForm($this, array('content' => $content, 
+                                                   'inreplyto' => $inreplyto));
+
         $notice_form->show();
     }