diff --git a/plugins/GNUsocialVideo/actions/postvideo.php b/plugins/GNUsocialVideo/actions/postvideo.php index db27ecd8e4..c0b78447c1 100644 --- a/plugins/GNUsocialVideo/actions/postvideo.php +++ b/plugins/GNUsocialVideo/actions/postvideo.php @@ -73,7 +73,11 @@ class PostvideoAction extends Action { $profile = $this->user->getProfile(); - $vid = Video::saveNew($profile, $this->url, array()); + $options = array(); + + ToSelector::fillOptions($this, $options); + + $vid = Video::saveNew($profile, $this->url, $options); common_redirect($vid->uri, 303); } diff --git a/plugins/GNUsocialVideo/videoform.php b/plugins/GNUsocialVideo/videoform.php index d47605a947..439720ea2f 100644 --- a/plugins/GNUsocialVideo/videoform.php +++ b/plugins/GNUsocialVideo/videoform.php @@ -51,6 +51,12 @@ class VideoForm extends Form $this->unli(); $this->out->elementEnd('ul'); + + $toWidget = new ToSelector($this->out, + common_current_user(), + null); + $toWidget->show(); + $this->out->elementEnd('fieldset'); }