From: Ian Denhardt Date: Tue, 24 May 2011 20:47:59 +0000 (-0400) Subject: integrated privacy toselector into video plugin. there is a display issue to fix... X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=ec707a782043e6fce39391cd722931c7f20dbc06;p=quix0rs-gnu-social.git integrated privacy toselector into video plugin. there is a display issue to fix, but it works. --- 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'); }