show event as deleted
This commit is contained in:
parent
731bdab804
commit
50c4731d20
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user