forked from GNUsocial/gnu-social
Only run EndSubscribe when it is really a sub
This commit is contained in:
parent
10cbf8c45e
commit
848d513706
@ -124,8 +124,10 @@ class Subscription extends Managed_DataObject
|
||||
}
|
||||
}
|
||||
|
||||
if ($sub instanceof Subscription) { // i.e. not SubscriptionQueue
|
||||
Event::handle('EndSubscribe', array($subscriber, $other));
|
||||
}
|
||||
}
|
||||
|
||||
return $sub;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user