• Модуль: mobile
  • Путь к файлу: ~/bitrix/modules/mobile/lib/component/loglist.php
  • Класс: BitrixMobileComponentLogList
  • Вызов: LogList::setFollowData
public function setFollowData(&$result): void
{
	if ($result['currentUserId'] <= 0)
	{
		return;
	}

	$params = $this->arParams;

	if ($params['USE_FOLLOW'] === 'Y')
	{
		$result['FOLLOW_DEFAULT'] = Option::get('socialnetwork', 'follow_default_type', 'Y');

		$res = CSocNetLogFollow::getList(
			[
				'USER_ID' => $result['currentUserId'],
				'CODE' => '**'
			],
			[ 'TYPE' ]
		);
		if ($followFields = $res->fetch())
		{
			$result['FOLLOW_DEFAULT'] = $followFields["TYPE"];
		}
	}
}