# First, get remote users subscribed to this profile
# XXX: use a join here rather than looping through results
$sub = new Subscription();
- $sub->subscribed = $notice->profile_id;
+ $sub->subscribed = $profile->id;
if ($sub->find()) {
$updated = array();
while ($sub->fetch()) {
function omb_update_profile($profile, $remote_profile, $subscription) {
global $config; # for license URL
- $user = User::staticGet('id', $profile->profile_id);
+ $user = User::staticGet($profile->id);
$con = omb_oauth_consumer();
$token = new OAuthToken($subscription->token, $subscription->secret);
$url = $remote_profile->updateprofileurl;