]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
RSVP asHTML throws a pretty exception that should go out of the div, by XRevan86
authorDiogo Cordeiro <diogo@fc.up.pt>
Fri, 26 Apr 2019 22:08:16 +0000 (23:08 +0100)
committerDiogo Cordeiro <diogo@fc.up.pt>
Fri, 26 Apr 2019 22:08:16 +0000 (23:08 +0100)
plugins/Event/EventPlugin.php

index ed6a01e9b48a5c88f5e02cff11c7418c09444b6f..57d11c77571cf27b2eb95e528e02b96103e0e914 100644 (file)
@@ -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');
     }