X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fomb.php;h=9b0b1fd24e52d3984cdd8b63c036d388647c0ab7;hb=1d67f33b3b62cc28d0a9845fb22776ce33adfdaa;hp=122ff5a7431191a238f89c1c81b3848eb84d5648;hpb=1866c60b87b15b4141182e7eb12e0daa20b99270;p=quix0rs-gnu-social.git diff --git a/lib/omb.php b/lib/omb.php index 122ff5a743..9b0b1fd24e 100644 --- a/lib/omb.php +++ b/lib/omb.php @@ -184,7 +184,7 @@ function omb_broadcast_profile($profile) { # 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()) { @@ -202,7 +202,7 @@ function omb_broadcast_profile($profile) { 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;