]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Some conversationRoot lookups failed with deleted notices
authorMikael Nordfeldth <mmn@hethane.se>
Mon, 28 Sep 2015 20:36:04 +0000 (22:36 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Mon, 28 Sep 2015 20:36:04 +0000 (22:36 +0200)
classes/Notice.php

index 41c4544cf2fc69efc5ce84c43fbbea11729b2f5a..13b86ce4c5121755204afa88038f463cfb553c15 100644 (file)
@@ -1320,6 +1320,10 @@ class Notice extends Managed_DataObject
                 }
             } catch (NoParentNoticeException $e) {
                 // Latest notice has no parent
+            } catch (NoResultException $e) {
+                // Notice was not found, so we can't go further up in the tree.
+                // FIXME: Maybe we should do this in a more stable way where deleted
+                // notices won't break conversation chains?
             }
             // No parent, or parent out of scope
             $root = $last;