X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=plugins%2FQnA%2Factions%2Fqnanewanswer.php;h=5543cba06c623dbff942744d3401abcff7b8e6b2;hb=d6b28c64830f632bb2f4b6f3c9369b9e56ad217a;hp=1a16a3fa6b9ad790950781b283d020825e729e22;hpb=5e47b1b2a07d8b300c511115ca018ece172a8505;p=quix0rs-gnu-social.git diff --git a/plugins/QnA/actions/qnanewanswer.php b/plugins/QnA/actions/qnanewanswer.php index 1a16a3fa6b..5543cba06c 100644 --- a/plugins/QnA/actions/qnanewanswer.php +++ b/plugins/QnA/actions/qnanewanswer.php @@ -74,7 +74,7 @@ class QnanewanswerAction extends Action { parent::prepare($argarray); if ($this->boolean('ajax')) { - StatusNet::setApi(true); + GNUsocial::setApi(true); } common_debug("in qnanewanswer"); $this->user = common_current_user(); @@ -327,14 +327,7 @@ class NoticeAnswerListItem extends NoticeListItem function showContent() { $this->out->elementStart('p', array('class' => 'e-content answer-content')); - if ($this->notice->rendered) { - $this->out->raw($this->notice->rendered); - } 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(common_render_content($this->notice->content, $this->notice)); - } + $this->out->raw($this->notice->getRendered()); if (!empty($this->answer)) { $form = new QnashowanswerForm($this->out, $this->answer);