more doco

This commit is contained in:
friendica 2013-03-26 19:53:04 -07:00
parent abd58bce68
commit ca605a8c83

View File

@ -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);
}