diff options
author | Mario Vavti <mario@mariovavti.com> | 2018-02-22 10:11:18 +0100 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2018-02-22 10:11:18 +0100 |
commit | a1f9d40d08de8cf126a7a519c6f040c4df5ed00c (patch) | |
tree | 10b2ca3ff65caf9425b85449b58615fdaf7ef443 /include/event.php | |
parent | bdcee4fc30d3be9c8e986a75f3f05ce2cddca1fd (diff) | |
parent | bb2ec5d8dc93ba81a3c156d647639eea131af5a3 (diff) | |
download | volse-hubzilla-a1f9d40d08de8cf126a7a519c6f040c4df5ed00c.tar.gz volse-hubzilla-a1f9d40d08de8cf126a7a519c6f040c4df5ed00c.tar.bz2 volse-hubzilla-a1f9d40d08de8cf126a7a519c6f040c4df5ed00c.zip |
Merge remote-tracking branch 'mike/master' into dev
Diffstat (limited to 'include/event.php')
-rw-r--r-- | include/event.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/event.php b/include/event.php index c1cf59425..1077a3c64 100644 --- a/include/event.php +++ b/include/event.php @@ -1200,6 +1200,13 @@ function event_store_item($arr, $event) { )); } + // 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); + $res = item_store($item_arr); $item_id = $res['item_id']; |