• Модуль: socialnetwork
  • Путь к файлу: ~/bitrix/modules/socialnetwork/lib/component/loglistcommon/processor.php
  • Класс: BitrixSocialnetworkComponentLogListCommonProcessor
  • Вызов: Processor::getUnreadTaskCommentsIdList
public function getUnreadTaskCommentsIdList(&$result): void
{
	$result['UNREAD_COMMENTS_ID_LIST'] = [];

	if ((int) ($result['LOG_COUNTER'] ?? null) <= 0)
	{
		return;
	}

	$tasks2LogList = $this->getComponent()->getTask2LogListValue();
	if (empty($tasks2LogList))
	{
		return;
	}

	$result['UNREAD_COMMENTS_ID_LIST'] = self::getUnreadCommentsIdList([
		'userId' => $result['currentUserId'],
		'logIdList' => array_values($tasks2LogList),
	]);
}