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

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