From ca605a8c838b28e89c611e1063456afa82e2fb33 Mon Sep 17 00:00:00 2001 From: friendica Date: Tue, 26 Mar 2013 19:53:04 -0700 Subject: more doco --- include/zot.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'include/zot.php') diff --git a/include/zot.php b/include/zot.php index 5fab76932..a06ae352b 100644 --- a/include/zot.php +++ b/include/zot.php @@ -537,9 +537,6 @@ function import_xchan($arr) { else $new_flags = 0; - - - $x = q("insert into xchan ( xchan_hash, xchan_guid, xchan_guid_sig, xchan_pubkey, xchan_photo_mimetype, xchan_photo_l, xchan_addr, xchan_url, xchan_connurl, xchan_name, xchan_network, xchan_photo_date, xchan_name_date, xchan_flags) values ( '%s', '%s', '%s', '%s' , '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', %d) ", @@ -760,6 +757,14 @@ function zot_fetch($arr) { return $result; } +/** + * @function zot_import + * + * Process an incoming array of messages which were obtained via pickup, and + * import, update, delete as directed. + * + * The message types handled here are 'activity' (e.g. posts), 'mail' and 'profile' + */ function zot_import($arr) { @@ -772,8 +777,6 @@ function zot_import($arr) { return array(); } -// logger('zot_import: data1: ' . print_r($data,true)); - if(array_key_exists('iv',$data)) { $data = json_decode(aes_unencapsulate($data,get_config('system','prvkey')),true); } -- cgit v1.2.3