aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-07 22:54:43 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-07 22:54:43 -0700
commit11e19a06b74014cd62a26f127162ff1984159dce (patch)
treeeaee498a17f0f6b746893bfc4077e725f0d90d0f /include
parentf84946c135412f59c13c15fa9c3292bc74098f92 (diff)
downloadvolse-hubzilla-11e19a06b74014cd62a26f127162ff1984159dce.tar.gz
volse-hubzilla-11e19a06b74014cd62a26f127162ff1984159dce.tar.bz2
volse-hubzilla-11e19a06b74014cd62a26f127162ff1984159dce.zip
export events
Diffstat (limited to 'include')
-rw-r--r--include/identity.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php
index 1a2a9c177..76079e93a 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -583,6 +583,25 @@ function identity_basic_export($channel_id, $items = false) {
if($r)
$ret['chatroom'] = $r;
+
+ $r = q("select * from event where uid = %d",
+ intval($channel_id)
+ );
+ if($r)
+ $ret['event'] = $r;
+
+ $r = q("select * from item where resource_type = 'event' and uid = %d",
+ intval($channel_id)
+ );
+ if($r) {
+ $ret['event_item'] = array();
+ xchan_query($r);
+ $r = fetch_post_tags($r,true);
+ foreach($r as $rr)
+ $ret['event_item'][] = encode_item($rr,true);
+ }
+
+
if(! $items)
return $ret;