forked from GNUsocial/gnu-social
Handle lack of parent nicely
This commit is contained in:
parent
306df3dc3b
commit
83c112e24b
@ -154,7 +154,11 @@ class NoticeListItem extends Widget
|
|||||||
|
|
||||||
if (!empty($this->notice->reply_to) || count($this->getProfileAddressees()) > 0) {
|
if (!empty($this->notice->reply_to) || count($this->getProfileAddressees()) > 0) {
|
||||||
$this->elementStart('div', array('class' => 'parents'));
|
$this->elementStart('div', array('class' => 'parents'));
|
||||||
if (!empty($this->notice->reply_to)) { $this->showParent(); }
|
try {
|
||||||
|
$this->showParent();
|
||||||
|
} catch (NoParentNoticeException $e) {
|
||||||
|
// no parent notice
|
||||||
|
}
|
||||||
if ($this->addressees) { $this->showAddressees(); }
|
if ($this->addressees) { $this->showAddressees(); }
|
||||||
$this->elementEnd('div');
|
$this->elementEnd('div');
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user