From ec707a782043e6fce39391cd722931c7f20dbc06 Mon Sep 17 00:00:00 2001 From: Ian Denhardt Date: Tue, 24 May 2011 16:47:59 -0400 Subject: [PATCH] integrated privacy toselector into video plugin. there is a display issue to fix, but it works. --- plugins/GNUsocialVideo/actions/postvideo.php | 6 +++++- plugins/GNUsocialVideo/videoform.php | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) 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'); }