Version 5.0.0 beta 11.1
This commit is contained in:
1 parent
264eeb97e0
commit
90e8c7e903
466 files changed
+7796
-2394
No files matched your search
@@ -412,22 +412,20 @@ class event extends Controller
|
||||
'rsvp_date' => time(),
|
||||
'rsvp_response' => (int) $_go
|
||||
) );
|
||||
|
||||
$webhookData = [
|
||||
'event' => $this->event->apiOutput(),
|
||||
'action' => Request::i()->action,
|
||||
'attendee' => Member::loggedIn()->apiOutput(),
|
||||
];
|
||||
|
||||
$message = 'rsvp_selection_' . Request::i()->action;
|
||||
|
||||
Webhook::fire( 'calendarEvent_rsvp', $webhookData );
|
||||
|
||||
\IPS\Events\Event::fire( 'onEventRsvp', Member::loggedIn(), array( $this->event, $_go ) );
|
||||
|
||||
|
||||
Member::loggedIn()->achievementAction( 'calendar', 'Rsvp', $this->event );
|
||||
}
|
||||
|
||||
$webhookData = [
|
||||
'event' => $this->event->apiOutput(),
|
||||
'action' => Request::i()->action,
|
||||
'attendee' => Member::loggedIn()->apiOutput(),
|
||||
];
|
||||
|
||||
Webhook::fire( 'calendarEvent_rsvp', $webhookData );
|
||||
\IPS\Events\Event::fire( 'onEventRsvp', Member::loggedIn(), array( $this->event, $_go ) );
|
||||
$message = 'rsvp_selection_' . Request::i()->action;
|
||||
|
||||
Output::i()->redirect( $this->event->url(), $message );
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user