forked from GNUsocial/gnu-social
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
e6e1ad66b0
@ -262,6 +262,14 @@ class Subscription extends Managed_DataObject
|
|||||||
$subscriber = Profile::staticGet('id', $this->subscriber);
|
$subscriber = Profile::staticGet('id', $this->subscriber);
|
||||||
$subscribed = Profile::staticGet('id', $this->subscribed);
|
$subscribed = Profile::staticGet('id', $this->subscribed);
|
||||||
|
|
||||||
|
if (empty($subscriber)) {
|
||||||
|
throw new Exception(sprintf(_('No profile for the subscriber: %d'), $this->subscriber));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (empty($subscribed)) {
|
||||||
|
throw new Exception(sprintf(_('No profile for the subscribed: %d'), $this->subscribed));
|
||||||
|
}
|
||||||
|
|
||||||
$act = new Activity();
|
$act = new Activity();
|
||||||
|
|
||||||
$act->verb = ActivityVerb::FOLLOW;
|
$act->verb = ActivityVerb::FOLLOW;
|
||||||
|
Loading…
Reference in New Issue
Block a user