diff options
author | redmatrix <redmatrix@redmatrix.me> | 2015-10-14 13:13:12 -0700 |
---|---|---|
committer | redmatrix <redmatrix@redmatrix.me> | 2015-10-14 13:13:12 -0700 |
commit | c7637a0c5394ae04c8abf1281043ca717a75e1cd (patch) | |
tree | 5699e7b2a0a24b2d2638672568fc359556287af0 /include/identity.php | |
parent | 64cdbb8e3bbec5f81ccd755744a419a6c7f2434b (diff) | |
parent | 9b1195c8964013f4f8ffe7efea75d569513b83f5 (diff) | |
download | volse-hubzilla-c7637a0c5394ae04c8abf1281043ca717a75e1cd.tar.gz volse-hubzilla-c7637a0c5394ae04c8abf1281043ca717a75e1cd.tar.bz2 volse-hubzilla-c7637a0c5394ae04c8abf1281043ca717a75e1cd.zip |
Merge https://github.com/redmatrix/redmatrix into pending_merge
Diffstat (limited to 'include/identity.php')
-rw-r--r-- | include/identity.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/identity.php b/include/identity.php index 47738a8fa..bb905e18f 100644 --- a/include/identity.php +++ b/include/identity.php @@ -631,6 +631,31 @@ function identity_basic_export($channel_id, $items = false) { if($r) $ret['likes'] = $r; + + $r = q("select * from conv where uid = %d", + intval($channel_id) + ); + if($r) + $ret['conv'] = $r; + + + $r = q("select mail.*, conv.guid as conv_guid from mail left join conv on mail.convid = conv.id where mail.uid = %d", + intval($channel_id) + ); + if($r) { + $m = array(); + foreach($r as $rr) { + + + + + } + $ret['mail'] = $m; + } + + + + $r = q("select item_id.*, item.mid from item_id left join item on item_id.iid = item.id where item_id.uid = %d", intval($channel_id) ); |