import and sync chatrooms

This commit is contained in:
redmatrix
2015-09-03 18:44:40 -07:00
parent d93e1c84ac
commit d79e81a069
6 changed files with 114 additions and 4 deletions

View File

@@ -566,13 +566,18 @@ function identity_basic_export($channel_id, $items = false) {
if($r)
$ret['obj'] = $r;
$r = q("select * from app where app_channel = %d",
intval($channel_id)
);
if($r)
$ret['app'] = $r;
$r = q("select * from chatroom where cr_uid = %d",
intval($channel_id)
);
if($r)
$ret['chatroom'] = $r;
if(! $items)
return $ret;