This commit is contained in:
Mario
2023-03-12 22:03:47 +00:00
parent 38a1b79174
commit 63a8611579
2 changed files with 2 additions and 3 deletions

View File

@@ -1389,8 +1389,8 @@ function event_store_item($arr, $event) {
// 'summary' => bbcode($arr['summary']),
// RFC3339 Section 4.3
'startTime' => (($arr['adjust']) ? datetime_convert('UTC', 'UTC', $arr['dtstart'], ATOM_TIME) : datetime_convert('UTC', 'UTC', $arr['dtstart'], 'Y-m-d\\TH:i:s-00:00')),
'content' => bbcode($arr['description']),
'location' => [ 'type' => 'Place', 'name' => bbcode($arr['location']) ],
'content' => $arr['description'],
'location' => [ 'type' => 'Place', 'name' => $arr['location'] ],
'source' => [ 'content' => format_event_bbcode($arr), 'mediaType' => 'text/bbcode' ],
'url' => [ [ 'mediaType' => 'text/calendar', 'href' => z_root() . '/events/ical/' . $event['event_hash'] ] ],
'actor' => Activity::encode_person($z, false),

View File

@@ -1795,7 +1795,6 @@ function prepare_body(&$item,$attach = false,$opts = false) {
}
$event = (($item['obj_type'] === ACTIVITY_OBJ_EVENT) ? format_event_obj($item['obj']) : []);
$prep_arr = [
'item' => $item,
'html' => $event ? $event['content'] : $s,