]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Subscription::start() should be enough, right?
authorEvan Prodromou <evan@status.net>
Sun, 21 Feb 2010 01:36:54 +0000 (20:36 -0500)
committerEvan Prodromou <evan@status.net>
Sun, 21 Feb 2010 01:36:54 +0000 (20:36 -0500)
plugins/OStatus/actions/usersalmon.php

index 20c6c2942a98d8d491d0a58261c22be3f6e1eed9..020ca597cd7380cce7d8c0b6ffb6fa446f35a2a1 100644 (file)
@@ -101,7 +101,8 @@ class UsersalmonAction extends SalmonAction
         $oprofile = $this->ensureProfile();
         if ($oprofile) {
             common_log(LOG_INFO, "Setting up subscription from remote {$oprofile->uri} to local {$this->user->nickname}");
-            $oprofile->subscribeRemoteToLocal($this->user);
+            Subscription::start($oprofile->localProfile(),
+                                $this->user->getProfile());
         } else {
             common_log(LOG_INFO, "Can't set up subscription from remote; missing profile.");
         }