forked from GNUsocial/gnu-social
integrated privacy toselector into video plugin. there is a display issue to fix, but it works.
This commit is contained in:
parent
fcc3c88c74
commit
ec707a7820
@ -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);
|
||||
}
|
||||
|
@ -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');
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user