127 if (empty($this->sourceFields))
138 $result = truncateText(str_replace(
''',
"'", htmlspecialcharsBack(\CTextParser::clearAllTags($post[
'DETAIL_TEXT']))), 100);
143 && Loader::includeModule(
'disk')
147 $res = \Bitrix\Disk\AttachedObject::getList([
149 '=ENTITY_TYPE' => \
Bitrix\Disk\Uf\BlogPostConnector::className(),
150 'ENTITY_ID' => $this->entityId
152 'select' => [
'ID',
'FILENAME' =>
'OBJECT.NAME' ]
154 foreach ($res as $attachedObjectFields)
156 $fileNameList[] = $attachedObjectFields[
'FILENAME'];
158 $result = truncateText(implode(
' ', $fileNameList), 100);