forked from GNUsocial/gnu-social
Subscription::start() should be enough, right?
This commit is contained in:
parent
0c62c68675
commit
6f1ccfc577
@ -101,7 +101,8 @@ class UsersalmonAction extends SalmonAction
|
|||||||
$oprofile = $this->ensureProfile();
|
$oprofile = $this->ensureProfile();
|
||||||
if ($oprofile) {
|
if ($oprofile) {
|
||||||
common_log(LOG_INFO, "Setting up subscription from remote {$oprofile->uri} to local {$this->user->nickname}");
|
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 {
|
} else {
|
||||||
common_log(LOG_INFO, "Can't set up subscription from remote; missing profile.");
|
common_log(LOG_INFO, "Can't set up subscription from remote; missing profile.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user