forked from GNUsocial/gnu-social
Don't start <p> element until we've checked for attachments
This commit is contained in:
@@ -60,8 +60,6 @@ class BookmarkListItem extends NoticeListItemAdapter
|
||||
$notice = $this->nli->notice;
|
||||
$out = $this->nli->out;
|
||||
|
||||
$out->elementStart('p', array('class' => 'entry-content'));
|
||||
|
||||
$nb = Bookmark::getByNotice($notice);
|
||||
|
||||
$profile = $notice->getProfile();
|
||||
@@ -85,9 +83,10 @@ class BookmarkListItem extends NoticeListItemAdapter
|
||||
|
||||
parent::showContent();
|
||||
return;
|
||||
|
||||
}
|
||||
|
||||
$out->elementStart('p', array('class' => 'entry-content'));
|
||||
|
||||
$att = $atts[0];
|
||||
|
||||
$out->elementStart('h3');
|
||||
|
Reference in New Issue
Block a user