aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-07 22:55:42 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-07 22:55:42 -0700
commitc6bdf7e891f3c0b49a1e9c40622e05aef590e2b6 (patch)
tree8e25e4395d8ef7f0dbbe0f12450ad4b9d7cb20c0 /include
parent880ca35681d63dc0a45174e1403af1005a88c848 (diff)
parent11e19a06b74014cd62a26f127162ff1984159dce (diff)
downloadvolse-hubzilla-c6bdf7e891f3c0b49a1e9c40622e05aef590e2b6.tar.gz
volse-hubzilla-c6bdf7e891f3c0b49a1e9c40622e05aef590e2b6.tar.bz2
volse-hubzilla-c6bdf7e891f3c0b49a1e9c40622e05aef590e2b6.zip
Merge https://github.com/redmatrix/redmatrix into pending_merge
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 393378cc4..211832d51 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -578,6 +578,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;