X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fnoticesearch.php;h=fd8fdf68e52f38139956ab5350aca4e1cee44a97;hb=6924bb1d290643da7b4ffb13d9fbb09afaaba22c;hp=d4fc884f4bb2865bb6707222185476e1570e30e9;hpb=87d46e1ae5e5effcc985021ff5af3f10815f3d3c;p=quix0rs-gnu-social.git diff --git a/actions/noticesearch.php b/actions/noticesearch.php index d4fc884f4b..fd8fdf68e5 100644 --- a/actions/noticesearch.php +++ b/actions/noticesearch.php @@ -202,15 +202,8 @@ class SearchNoticeListItem extends NoticeListItem { function showContent() { // FIXME: URL, image, video, audio - $this->out->elementStart('p', array('class' => 'entry-content')); - if ($this->notice->rendered) { - $this->out->raw($this->highlight($this->notice->rendered, $this->terms)); - } else { - // XXX: may be some uncooked notices in the DB, - // we cook them right now. This should probably disappear in future - // versions (>> 0.4.x) - $this->out->raw($this->highlight(common_render_content($this->notice->content, $this->notice), $this->terms)); - } + $this->out->elementStart('p', array('class' => 'e-content')); + $this->out->raw($this->highlight($this->notice->getRendered(), $this->terms)); $this->out->elementEnd('p'); }