proc_run(PRIORITY_LOW, "include/directory.php", $url);
}
- require_once 'include/profile_update.php';
- profile_change();
+ proc_run(PRIORITY_LOW, 'include/profile_update.php', api_user());
// output for client
if ($data) {
<?php
require_once('include/diaspora.php');
-function profile_change() {
- Diaspora::send_profile(local_user());
+function profile_update_run(&$argv, &$argc) {
+ if ($argc != 2) {
+ return;
+ }
+
+ $uid = intval($argv[1]);
+
+ Diaspora::send_profile($uid);
}
proc_run(PRIORITY_LOW, "include/directory.php", $url);
}
- require_once('include/profile_update.php');
- profile_change();
+ proc_run(PRIORITY_LOW, 'include/profile_update.php', local_user());
} else {
notice( t('Unable to process image') . EOL);
}
proc_run(PRIORITY_LOW, "include/directory.php", $url);
}
- require_once 'include/profile_update.php';
- profile_change();
+ proc_run(PRIORITY_LOW, 'include/profile_update.php', local_user());
// Update the global contact for the user
update_gcontact_for_user(local_user());
}
}
- require_once('include/profile_update.php');
- profile_change();
+ proc_run(PRIORITY_LOW, 'include/profile_update.php', local_user());
// Update the global contact for the user
update_gcontact_for_user(local_user());