]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
integrated privacy toselector into video plugin. there is a display issue to fix...
authorIan Denhardt <ian@zenhack.net>
Tue, 24 May 2011 20:47:59 +0000 (16:47 -0400)
committerIan Denhardt <ian@zenhack.net>
Tue, 24 May 2011 20:47:59 +0000 (16:47 -0400)
plugins/GNUsocialVideo/actions/postvideo.php
plugins/GNUsocialVideo/videoform.php

index db27ecd8e4a0ac9cf870168c18c955146d9746dd..c0b78447c1d11330395c0c0fc1c4cde06cd8a318 100644 (file)
@@ -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);
     }
index d47605a9472f4b6941df8e6090d873fd791e699b..439720ea2f092237d9c25a748b0c703f7c2ef797 100644 (file)
@@ -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');
     }