aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-04 17:35:27 -0700
committerredmatrix <git@macgirvin.com>2016-05-04 17:35:27 -0700
commit50fb525b280069e4a95f9ae133b15460e8b02318 (patch)
tree681af74d8de7b6b73c6965738e366657fdc2e5cd /include/identity.php
parent7c57da3a28ceda8eb5622ffedd0a20bba742e96a (diff)
downloadvolse-hubzilla-50fb525b280069e4a95f9ae133b15460e8b02318.tar.gz
volse-hubzilla-50fb525b280069e4a95f9ae133b15460e8b02318.tar.bz2
volse-hubzilla-50fb525b280069e4a95f9ae133b15460e8b02318.zip
add categories to apps (wip)
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/identity.php b/include/identity.php
index c60c846c0..53bed7c0f 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -580,11 +580,18 @@ function identity_basic_export($channel_id, $items = false) {
if($r)
$ret['obj'] = $r;
- $r = q("select * from app where app_channel = %d",
+ $r = q("select * from app where app_channel = %d and app_system = 0",
intval($channel_id)
);
- if($r)
+ if($r) {
+ for($x = 0; $x < count($r); $x ++) {
+ $r[$x]['term'] = q("select * from term where otype = %d and oid = %d",
+ intval(TERM_OBJ_APP),
+ intval($r[$x]['id'])
+ );
+ }
$ret['app'] = $r;
+ }
$r = q("select * from chatroom where cr_uid = %d",
intval($channel_id)