forked from GNUsocial/gnu-social
Avoid exception for invalid URL aborting rendering for parent notice if it fails
This commit is contained in:
@@ -158,6 +158,8 @@ class NoticeListItem extends Widget
|
|||||||
$this->showParent();
|
$this->showParent();
|
||||||
} catch (NoParentNoticeException $e) {
|
} catch (NoParentNoticeException $e) {
|
||||||
// no parent notice
|
// no parent notice
|
||||||
|
} catch (InvalidUrlException $e) {
|
||||||
|
// parent had an invalid URL so we can't show it
|
||||||
}
|
}
|
||||||
if ($this->addressees) { $this->showAddressees(); }
|
if ($this->addressees) { $this->showAddressees(); }
|
||||||
$this->elementEnd('div');
|
$this->elementEnd('div');
|
||||||
|
Reference in New Issue
Block a user