aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-01 20:57:53 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-01 20:57:53 -0700
commit3c29b46c4266a62bbd0c61f8663911434fbb7989 (patch)
tree09195050dbb168549a1e6a155dbb97244fe92960 /include
parenteb2df761d52a2d26c600ecbf85ab570dea2a8cc6 (diff)
downloadvolse-hubzilla-3c29b46c4266a62bbd0c61f8663911434fbb7989.tar.gz
volse-hubzilla-3c29b46c4266a62bbd0c61f8663911434fbb7989.tar.bz2
volse-hubzilla-3c29b46c4266a62bbd0c61f8663911434fbb7989.zip
use different obj export output format for hubzilla compatibility
Diffstat (limited to 'include')
-rw-r--r--include/identity.php9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/identity.php b/include/identity.php
index 2535e1e1d..561a69cd5 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -555,7 +555,14 @@ function identity_basic_export($channel_id, $items = false) {
if($r)
$ret['term'] = $r;
- $r = q("select * from obj where obj_channel = %d",
+
+ // make the obj output match the hubzilla file format
+
+ $datestamp = datetime_convert();
+
+ $r = q("select obj.*, term.term as obj_term, term.url as obj_url, term.imgurl as obj_imgurl, '%s' as obj_created, '%s' as obj_edited from obj left join term on obj_obj = term.term_hash where obj_channel = %d",
+ dbesc($datestamp),
+ dbesc($datestamp),
intval($channel_id)
);