This commit is contained in:
redmatrix
2015-10-14 13:13:12 -07:00
4 changed files with 5460 additions and 5482 deletions

View File

@@ -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)
);