]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
There could be unresolvable FeedSub entries
authorMikael Nordfeldth <mmn@hethane.se>
Sun, 1 Jun 2014 14:07:08 +0000 (16:07 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Sun, 1 Jun 2014 14:07:08 +0000 (16:07 +0200)
plugins/OStatus/classes/Ostatus_profile.php

index 19fa20f805f11616cd60263519d9fc8f7a5cbbd5..e78425c7d688f887a0f5d323790290b1b84dac29 100644 (file)
@@ -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;
     }
 
     /**