Commit 3ef8322b authored by mmn's avatar mmn

There could be unresolvable FeedSub entries

parent 2f97d5d2
......@@ -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;
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment