aboutsummaryrefslogtreecommitdiffstats
path: root/include/event.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-02-21 15:56:51 -0800
committerzotlabs <mike@macgirvin.com>2018-02-21 15:56:51 -0800
commit8fc48f2d4398fce0fe345da6e5e0587006459c1c (patch)
treea48c3a8dc5b683eea32f73e7bea124058e7ab2ab /include/event.php
parentb6d34bffccc42a9367d1108144824970946532e8 (diff)
downloadvolse-hubzilla-8fc48f2d4398fce0fe345da6e5e0587006459c1c.tar.gz
volse-hubzilla-8fc48f2d4398fce0fe345da6e5e0587006459c1c.tar.bz2
volse-hubzilla-8fc48f2d4398fce0fe345da6e5e0587006459c1c.zip
add event resource_id to iconfig so Diaspora can search on it without looking inside JSON objects.
Diffstat (limited to 'include/event.php')
-rw-r--r--include/event.php7
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'];