37 EventResult::UNDEFINED,
45 if (!in_array($eventId, self::getEventIdList()))
53 if (intval($sourceId) > 0)
60 $commentFieldList = $comment->getFields();
62 if (!($commentAuxProvider = CommentAux\Base::findProvider($commentFieldList)))
64 $content .= LogIndex::getUserName($commentFieldList[
"AUTHOR_ID"]).
" ";
65 $content .= \blogTextParser::killAllTags($commentFieldList[
"POST_TEXT"]);
68 if (!empty($commentFieldList[
'UF_BLOG_COMMENT_FILE']))
70 $fileNameList = LogIndex::getDiskUFFileNameList($commentFieldList[
'UF_BLOG_COMMENT_FILE']);
71 if (!empty($fileNameList))
73 $content .=
' '.join(
' ', $fileNameList);
77 if (!empty($commentFieldList[
'UF_BLOG_COMM_URL_PRV']))
79 $metadata = \Bitrix\Main\UrlPreview\UrlMetadataTable::getRowById($commentFieldList[
'UF_BLOG_COMM_URL_PRV']);
82 && isset($metadata[
'TITLE'])
83 && $metadata[
'TITLE'] <>
''
86 $content .=
' '.$metadata[
'TITLE'];
94 'content' => $content,