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