From 7845a09b34d109e564a52d4e2fc60388376a2c67 Mon Sep 17 00:00:00 2001 From: Diogo Cordeiro Date: Fri, 26 Apr 2019 23:08:16 +0100 Subject: [PATCH] RSVP asHTML throws a pretty exception that should go out of the div, by XRevan86 --- plugins/Event/EventPlugin.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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'); }