mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
provide the event hash and timezone in the event object
This commit is contained in:
@@ -1269,6 +1269,8 @@ function event_store_item($arr, $event, $deliver = true) {
|
||||
$x = [
|
||||
'type' => 'Event',
|
||||
'id' => z_root() . '/event/' . $r[0]['resource_id'],
|
||||
'uuid' => $r[0]['resource_id'],
|
||||
'timezone' => $arr['timezone'],
|
||||
'name' => $arr['summary'],
|
||||
// 'summary' => bbcode($arr['summary']),
|
||||
// RFC3339 Section 4.3
|
||||
@@ -1395,6 +1397,8 @@ function event_store_item($arr, $event, $deliver = true) {
|
||||
$y = [
|
||||
'type' => 'Event',
|
||||
'id' => z_root() . '/event/' . $event['event_hash'],
|
||||
'uuid' => $event['event_hash'],
|
||||
'timezone' => $arr['timezone'],
|
||||
'name' => $arr['summary'],
|
||||
// 'summary' => bbcode($arr['summary']),
|
||||
// RFC3339 Section 4.3
|
||||
@@ -1425,13 +1429,6 @@ function event_store_item($arr, $event, $deliver = true) {
|
||||
];
|
||||
$item_arr['tgt_type'] = 'Collection';
|
||||
|
||||
// propagate the event resource_id so that posts containing it are easily searchable in downstream copies
|
||||
// of the item which have not stored the actual event. Required for Diaspora event federation as Diaspora
|
||||
// event_participation messages refer to the event resource_id as a parent, while out own event attendance
|
||||
// activities refer to the item message_id as the parent.
|
||||
|
||||
set_iconfig($item_arr, 'system', 'event_id', $event['event_hash'], true);
|
||||
|
||||
$post = item_store($item_arr, deliver: $deliver);
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user