36 if ($commentId <= 0 || !Loader::includeModule(
'blog'))
41 $res = \CBlogComment::getList(
63 !($comment = $res->fetch())
65 $comment[
'PUBLISH_STATUS'] === BLOG_PUBLISH_STATUS_READY
66 && !$this->isCurrentUserAdmin()
73 $res = \CBlogPost::getList([], [
'ID' => $comment[
'POST_ID']]);
74 if (!($post = $res->fetch()))
87 if (!empty($post[
'DETAIL_TEXT']))
95 $title = htmlspecialcharsback($comment[
'POST_TEXT']);
97 $title = (new \blogTextParser())->convert($title,
false);
98 $title = preg_replace(
100 "/\n+/is" . BX_UTF_PCRE_MODIFIER,
101 "/\s+/is" . BX_UTF_PCRE_MODIFIER,
102 "/ +/is" . BX_UTF_PCRE_MODIFIER
105 \blogTextParser::killAllTags($title)