Post :: activateLogEntry: Bitrix method

      
<?php 
//  Bitrix\Blog\Item\Post :: activateLogEntry()
//  /dist/bitrix/modules/blog/lib/item/post.php:589

    
public function activateLogEntry()
    {
        
$result false;

        if (!
Loader::includeModule('socialnetwork'))
        {
            return 
$result;
        }

        
$logId $this->getLogId([
            
'inactive' => true
        
]);
        if (
intval($logId) <= 0)
        {
            return 
$result;
        }

        
$currentDateTime = new \Bitrix\Main\DB\SqlExpression(\Bitrix\Main\Application::getInstance()->getConnection()->getSqlHelper()->getCurrentDateTimeFunction());
        
LogTable::update($logId, [
            
'INACTIVE' => 'N',
            
'LOG_DATE' => $currentDateTime,
            
'LOG_UPDATE' => $currentDateTime
        
]);

        return 
true;
    }