aboutsummaryrefslogtreecommitdiffstats
path: root/include/identity.php
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-09-01 21:08:02 -0700
committerredmatrix <redmatrix@redmatrix.me>2015-09-01 21:08:02 -0700
commitc5578d79643bbdde8f49baae2fa6890fc9bf9a53 (patch)
tree28989041c08151a138dd21006fecc83f9ee68275 /include/identity.php
parent95cf1aafa0084663e396ccc3d077cfd52325b3a8 (diff)
downloadvolse-hubzilla-c5578d79643bbdde8f49baae2fa6890fc9bf9a53.tar.gz
volse-hubzilla-c5578d79643bbdde8f49baae2fa6890fc9bf9a53.tar.bz2
volse-hubzilla-c5578d79643bbdde8f49baae2fa6890fc9bf9a53.zip
match the redmatrix output format for objects (which is the hubzilla table format)
Diffstat (limited to 'include/identity.php')
-rw-r--r--include/identity.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/include/identity.php b/include/identity.php
index 6cfa38f19..1bea5d790 100644
--- a/include/identity.php
+++ b/include/identity.php
@@ -556,13 +556,9 @@ function identity_basic_export($channel_id, $items = false) {
$ret['term'] = $r;
- // make the obj output match the hubzilla file format
+ // add psuedo-column obj_baseurl to aid in relocations
- $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, '%s' as obj_baseurl from obj left join term on obj_obj = term.term_hash where obj_channel = %d",
- dbesc($datestamp),
- dbesc($datestamp),
+ $r = q("select obj.*, '%s' as obj_baseurl from obj where obj_channel = %d",
dbesc(z_root()),
intval($channel_id)
);