X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FEvent%2Fcancelrsvp.php;h=83dabe2de5e084bba93b2d41af404526daf81482;hb=1e36593a23bd8e50e50d115c28a7f8fa024fb768;hp=21ed41a4512d6bdbbe03cb4bd3240541c60d2f27;hpb=35429c28e5bdde71fe9dff9e69ef795a31a96e8d;p=quix0rs-gnu-social.git diff --git a/plugins/Event/cancelrsvp.php b/plugins/Event/cancelrsvp.php index 21ed41a451..83dabe2de5 100644 --- a/plugins/Event/cancelrsvp.php +++ b/plugins/Event/cancelrsvp.php @@ -72,6 +72,9 @@ class CancelrsvpAction extends Action function prepare($argarray) { parent::prepare($argarray); + if ($this->boolean('ajax')) { + StatusNet::setApi(true); // short error results! + } $rsvpId = $this->trimmed('rsvp'); @@ -133,8 +136,10 @@ class CancelrsvpAction extends Action $notice = $this->rsvp->getNotice(); // NB: this will delete the rsvp, too if (!empty($notice)) { + common_log(LOG_DEBUG, "Deleting notice..."); $notice->delete(); } else { + common_log(LOG_DEBUG, "Deleting RSVP alone..."); $this->rsvp->delete(); } } catch (ClientException $ce) {