forked from GNUsocial/gnu-social
When an attachment fails to load, it shouldn't destroy the whole layout by XRevan86
This commit is contained in:
parent
8a07edec5f
commit
bf7f17474d
@ -81,7 +81,12 @@ class AttachmentListItem extends Widget
|
||||
function show()
|
||||
{
|
||||
$this->showStart();
|
||||
try {
|
||||
$this->showNoticeAttachment();
|
||||
} catch (Exception $e) {
|
||||
$this->element('div', ['class'=>'error'], $e->getMessage());
|
||||
common_debug($e->getMessage());
|
||||
}
|
||||
$this->showEnd();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user