]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/omb.php
add OpenID settings to settings menu
[quix0rs-gnu-social.git] / lib / omb.php
index 122ff5a7431191a238f89c1c81b3848eb84d5648..9b0b1fd24e52d3984cdd8b63c036d388647c0ab7 100644 (file)
@@ -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;