From: Diogo Cordeiro Date: Fri, 26 Apr 2019 22:08:16 +0000 (+0100) Subject: RSVP asHTML throws a pretty exception that should go out of the div, by XRevan86 X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=7845a09b34d109e564a52d4e2fc60388376a2c67;p=quix0rs-gnu-social.git RSVP asHTML throws a pretty exception that should go out of the div, by XRevan86 --- diff --git a/plugins/Event/EventPlugin.php b/plugins/Event/EventPlugin.php index ed6a01e9b4..57d11c7757 100644 --- a/plugins/Event/EventPlugin.php +++ b/plugins/Event/EventPlugin.php @@ -410,7 +410,7 @@ class EventPlugin extends ActivityVerbHandlerPlugin protected function showRSVP(Notice $stored, HTMLOutputter $out, Profile $scoped=null) { try { - $rsvp = RSVP::fromStored($stored); + $rsvp = RSVP::fromStored($stored)->asHTML(); } catch (NoResultException $e) { // TRANS: Content for a deleted RSVP list item (RSVP stands for "please respond"). $out->element('p', null, _m('Deleted.')); @@ -418,7 +418,7 @@ class EventPlugin extends ActivityVerbHandlerPlugin } $out->elementStart('div', 'rsvp'); - $out->raw($rsvp->asHTML()); + $out->raw($rsvp); $out->elementEnd('div'); }