]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Avoid exception for invalid URL aborting rendering for parent notice if it fails
authorMikael Nordfeldth <mmn@hethane.se>
Fri, 1 Jan 2016 23:09:10 +0000 (00:09 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Fri, 1 Jan 2016 23:09:10 +0000 (00:09 +0100)
lib/noticelistitem.php

index 52dcbc1f6777507ae659d83c3cd3d8a3d191fbcd..a440c4dd6298bdaf470e439bbd6e163417097cea 100644 (file)
@@ -158,6 +158,8 @@ class NoticeListItem extends Widget
                 $this->showParent();
             } catch (NoParentNoticeException $e) {
                 // no parent notice
+            } catch (InvalidUrlException $e) {
+                // parent had an invalid URL so we can't show it
             }
             if ($this->addressees) { $this->showAddressees(); }
             $this->elementEnd('div');