X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fnoticesearch.php;h=bcd2eb5065009597d1f079e5b89f109fed6d3a3b;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=f1d6d1551640b9d771c780a22f4d7f080d648b5f;hpb=200721a2f45dbfa5463ba32165c7f60e517f0622;p=quix0rs-gnu-social.git diff --git a/actions/noticesearch.php b/actions/noticesearch.php index f1d6d15516..bcd2eb5065 100644 --- a/actions/noticesearch.php +++ b/actions/noticesearch.php @@ -203,14 +203,7 @@ class SearchNoticeListItem extends NoticeListItem { { // FIXME: URL, image, video, audio $this->out->elementStart('p', array('class' => 'e-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->raw($this->highlight($this->notice->getRendered(), $this->terms)); $this->out->elementEnd('p'); }