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