- Модуль: timeman
- Путь к файлу: ~/bitrix/modules/timeman/lib/service/worktime/worktimelivefeedmanager.php
- Класс: BitrixTimemanServiceWorktimeWorktimeLiveFeedManager
- Вызов: WorktimeLiveFeedManager::continueWorkdayPostTrackingForApprover
public function continueWorkdayPostTrackingForApprover($recordId, $userId): void
{
if ($userId <= 0 || !BitrixMainLoader::includeModule('socialnetwork'))
{
return;
}
$postCode = $this->getPostCodeByRecordId($recordId);
if ($postCode !== null)
{
$logItem = CSocNetLogFollow::getList(
[
'CODE' => $postCode,
'TYPE' => 'N',
'USER_ID' => $userId,
'BY_WF' => 'Y', // post was ignored by system, not by user manually
],
['USER_ID']
)->fetch();
if ($logItem)
{
CSocNetLogFollow::delete($userId, $postCode);
}
}
}