forked from GNUsocial/gnu-social
Direct events to users or groups
This commit is contained in:
parent
4fea746913
commit
a9856e6550
@ -147,6 +147,13 @@ class EventForm extends Form
|
||||
_m('Description of the event.'));
|
||||
$this->unli();
|
||||
|
||||
$this->li();
|
||||
$toWidget = new ToSelector($this->out,
|
||||
common_current_user(),
|
||||
null);
|
||||
$toWidget->show();
|
||||
$this->unli();
|
||||
|
||||
$this->out->elementEnd('ul');
|
||||
$this->out->elementEnd('fieldset');
|
||||
}
|
||||
|
@ -190,6 +190,12 @@ class NeweventAction extends Action
|
||||
throw new ClientException(_m('Event must have an end time.'));
|
||||
}
|
||||
|
||||
$options = array();
|
||||
|
||||
// Does the heavy-lifting for getting "To:" information
|
||||
|
||||
ToSelector::fillOptions($this, $options);
|
||||
|
||||
$profile = $this->user->getProfile();
|
||||
|
||||
$saved = Happening::saveNew($profile,
|
||||
@ -198,7 +204,8 @@ class NeweventAction extends Action
|
||||
$this->title,
|
||||
$this->location,
|
||||
$this->description,
|
||||
$this->url);
|
||||
$this->url,
|
||||
$options);
|
||||
|
||||
$event = Happening::fromNotice($saved);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user