throw new ClientException(_m('No such RSVP.'));
}
- $this->event = Happening::getKV('id', $this->rsvp->event_id);
+ $this->event = Happening::getKV('uri', $this->rsvp->event_uri);
if (empty($this->event)) {
// TRANS: Client exception thrown when referring to a non-existing event.
// NB: this will delete the rsvp, too
if (!empty($notice)) {
common_debug("Deleting notice...");
- $notice->delete();
+ $notice->deleteAs($this->scoped);
} else {
common_debug("Deleting RSVP alone...");
$this->rsvp->delete();