]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/Event/actions/cancelrsvp.php
RSVPs refer to Happening (event) by URI instead of ID now
[quix0rs-gnu-social.git] / plugins / Event / actions / cancelrsvp.php
index 83f6a73ae07035f8cf6dd557ad555a0ac153dd4f..662a1de0b36694a3ab9ff8816779e16af326c641 100644 (file)
@@ -89,7 +89,7 @@ class CancelrsvpAction extends Action
             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.