use different obj export output format for hubzilla compatibility

This commit is contained in:
redmatrix 2015-09-01 20:57:53 -07:00
parent eb2df761d5
commit 3c29b46c42

View File

@ -555,7 +555,14 @@ function identity_basic_export($channel_id, $items = false) {
if($r) if($r)
$ret['term'] = $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) intval($channel_id)
); );