There could be unresolvable FeedSub entries
This commit is contained in:
parent
2f97d5d206
commit
3ef8322b03
|
@ -238,8 +238,12 @@ class Ostatus_profile extends Managed_DataObject
|
|||
public function garbageCollect()
|
||||
{
|
||||
$feedsub = FeedSub::getKV('uri', $this->feeduri);
|
||||
if ($feedsub instanceof FeedSub) {
|
||||
return $feedsub->garbageCollect();
|
||||
}
|
||||
// Since there's no FeedSub we can assume it's already garbage collected
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if this remote profile has any active local subscriptions, so the
|
||||
|
|
Loading…
Reference in New Issue
Block a user