return Notice::staticGet('uri', $this->uri);
}
+ static function fromNotice($notice)
+ {
+ return QnA_Answer::staticGet('uri', $notice->uri);
+ }
+
function bestUrl()
{
return $this->getNotice()->bestUrl();
$out->elementStart('p', array('class' => implode(' ', $cls)));
$out->elementStart('span', 'answer-content');
- $out->raw(QnAPlugin::shorten($answer->content, $notice));
+ $out->raw(common_render_text($answer->content));
$out->elementEnd('span');
if (!empty($answer->revisions)) {