diff options
author | friendica <info@friendica.com> | 2012-08-15 23:15:29 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-08-15 23:15:29 -0700 |
commit | 5b547ae991624924c0ef11dbe36ae57f5ec2182b (patch) | |
tree | 875bdc2b49a588f9076d83f21362de26540acbf6 /include/items.php | |
parent | f7c6a6ff9071c120f5bd6efe51cdb934e0c30cc7 (diff) | |
download | volse-hubzilla-5b547ae991624924c0ef11dbe36ae57f5ec2182b.tar.gz volse-hubzilla-5b547ae991624924c0ef11dbe36ae57f5ec2182b.tar.bz2 volse-hubzilla-5b547ae991624924c0ef11dbe36ae57f5ec2182b.zip |
registration dangling code fragment that should've been removed
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/include/items.php b/include/items.php index 48f063ab7..bb053434d 100755 --- a/include/items.php +++ b/include/items.php @@ -428,30 +428,36 @@ function get_item_elements($j) { $arr['obj_type'] = (($j->objtype) ? htmlentities($j->objtype, ENT_COMPAT,'UTF-8') : ''); $arr['tgt_type'] = (($j->tgttype) ? htmlentities($j->tgttype, ENT_COMPAT,'UTF-8') : ''); - $arr['obj'] = $j->obj; - $arr['tgt'] = $j->tgt; + $arr['object'] = $j->object; + $arr['target'] = $j->target; $arr['attach'] = $j->attach; $arr['tags'] = $j->tags; - $arr['privacy'] = $j->privacy; + $arr['private'] = $j->private; $arr['flags'] = intval($j->flags); - $arr['types'] = intval($j->types); $arr['author'] = $j->author; - $arr['new'] = 1; + // needed still: owner and contact, map flags return $arr; } +function encode_item($item) { + return json_encode($item); + +} + + + function get_atom_elements($feed,$item) { |