diff options
author | redmatrix <git@macgirvin.com> | 2016-06-21 18:18:06 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-06-21 18:18:06 -0700 |
commit | 8fa26db1b32fd9ff8b61c46194439a02ccc550c8 (patch) | |
tree | 3e6d54e3e23b17709c4f5d1c94abccd106cb95ed /Zotlabs/Module/Import_items.php | |
parent | 63423c8ee1f750d855c75ed67205076d21eda4f1 (diff) | |
download | volse-hubzilla-8fa26db1b32fd9ff8b61c46194439a02ccc550c8.tar.gz volse-hubzilla-8fa26db1b32fd9ff8b61c46194439a02ccc550c8.tar.bz2 volse-hubzilla-8fa26db1b32fd9ff8b61c46194439a02ccc550c8.zip |
1. provide automatic relocation of important links in items that are imported or synced to clones
2. provide framework for custom curl request bodies using custom/non-standard request methods. This was a real nightmare because curl doesn't actually let you specify a string to send as the request body (except when doing POST). You have to treat it as a file upload using a custom file handler function which provides the actual content in chunks as if it were buffered I/O.
Diffstat (limited to 'Zotlabs/Module/Import_items.php')
-rw-r--r-- | Zotlabs/Module/Import_items.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Zotlabs/Module/Import_items.php b/Zotlabs/Module/Import_items.php index a862836c5..07b1c620c 100644 --- a/Zotlabs/Module/Import_items.php +++ b/Zotlabs/Module/Import_items.php @@ -92,7 +92,7 @@ class Import_items extends \Zotlabs\Web\Controller { if(array_key_exists('item',$data) && $data['item']) { - import_items($channel,$data['item']); + import_items($channel,$data['item'],false,((array_key_exists('relocate',$data)) ? $data['relocate'] : null)); } if(array_key_exists('item_id',$data) && $data['item_id']) { @@ -106,7 +106,7 @@ class Import_items extends \Zotlabs\Web\Controller { - function get() { + function get() { if(! local_channel()) { notice( t('Permission denied') . EOL); |