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);
|
$rsvp = RSVP::fromNotice($notice);
|
||||||
|
|
||||||
|
if (empty($rsvp)) {
|
||||||
|
$out->element('p', null, _('Deleted.'));
|
||||||
|
}
|
||||||
|
|
||||||
$out->elementStart('div', 'rsvp');
|
$out->elementStart('div', 'rsvp');
|
||||||
$out->raw($rsvp->asHTML());
|
$out->raw($rsvp->asHTML());
|
||||||
$out->elementEnd('div');
|
$out->elementEnd('div');
|
||||||
@ -337,8 +341,9 @@ class EventPlugin extends MicroappPlugin
|
|||||||
$profile = $notice->getProfile();
|
$profile = $notice->getProfile();
|
||||||
$event = Happening::fromNotice($notice);
|
$event = Happening::fromNotice($notice);
|
||||||
|
|
||||||
assert(!empty($event));
|
if (empty($event)) {
|
||||||
assert(!empty($profile));
|
$out->element('p', null, _('Deleted.'));
|
||||||
|
}
|
||||||
|
|
||||||
$out->elementStart('div', 'vevent event'); // VEVENT IN
|
$out->elementStart('div', 'vevent event'); // VEVENT IN
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user