Subscription::start() should be enough, right?

This commit is contained in:
Evan Prodromou 2010-02-20 20:36:54 -05:00
parent 0c62c68675
commit 6f1ccfc577
1 changed files with 2 additions and 1 deletions

View 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.");
}