]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
show event as deleted
authorEvan Prodromou <evan@status.net>
Fri, 8 Apr 2011 16:14:05 +0000 (12:14 -0400)
committerEvan Prodromou <evan@status.net>
Fri, 8 Apr 2011 16:14:05 +0000 (12:14 -0400)
plugins/Event/EventPlugin.php

index 528c855bda588a3c4c471f9b072ab49d794e3d2c..7775bdf12038df62e97dfba01f05d7c23692a84f 100644 (file)
@@ -326,6 +326,10 @@ class EventPlugin extends MicroappPlugin
     {
         $rsvp = RSVP::fromNotice($notice);
 
+        if (empty($rsvp)) {
+            $out->element('p', null, _('Deleted.'));
+        }
+
         $out->elementStart('div', 'rsvp');
         $out->raw($rsvp->asHTML());
         $out->elementEnd('div');
@@ -337,8 +341,9 @@ class EventPlugin extends MicroappPlugin
         $profile = $notice->getProfile();
         $event   = Happening::fromNotice($notice);
 
-        assert(!empty($event));
-        assert(!empty($profile));
+        if (empty($event)) {
+            $out->element('p', null, _('Deleted.'));
+        }
 
         $out->elementStart('div', 'vevent event'); // VEVENT IN