diff options
author | friendica <info@friendica.com> | 2013-01-31 23:56:46 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-01-31 23:56:46 -0800 |
commit | 5ca88ca10a11a76237aa34d1d93ba3e878567767 (patch) | |
tree | 01f0ed98ea409e8183469bf616c572cd9046cee7 /include/items.php | |
parent | 6b3d36c36d9a1c2da3e338ef7802c77b5fd82167 (diff) | |
download | volse-hubzilla-5ca88ca10a11a76237aa34d1d93ba3e878567767.tar.gz volse-hubzilla-5ca88ca10a11a76237aa34d1d93ba3e878567767.tar.bz2 volse-hubzilla-5ca88ca10a11a76237aa34d1d93ba3e878567767.zip |
debugging of file attachment api - somewhat functional but the attachment info structure in the item table needs to be re-done.
Diffstat (limited to 'include/items.php')
-rwxr-xr-x | include/items.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/items.php b/include/items.php index 92e256ea9..6618fe876 100755 --- a/include/items.php +++ b/include/items.php @@ -496,7 +496,7 @@ function get_item_elements($x) { $arr['object'] = activity_sanitise($x['object']); $arr['target'] = activity_sanitise($x['target']); - $arr['attach'] = activity_sanitise($x['attach']); + $arr['attach'] = implode(',',activity_sanitise($x['attach'])); $arr['term'] = decode_tags($x['tags']); $arr['item_private'] = ((array_key_exists('flags',$x) && is_array($x['flags']) && in_array('private',$x['flags'])) ? 1 : 0); @@ -588,7 +588,7 @@ function encode_item($item) { if($item['target']) $x['target'] = json_decode($item['target'],true); if($item['attach']) - $x['attach'] = json_decode($item['attach'],true); + $x['attach'] = explode(',', $item['attach']); if($y = encode_item_flags($item)) $x['flags'] = $y; if($item['term']) |