<?php
/**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2022, the Friendica project
*
* @license GNU AGPL version 3 or any later version
*
use Exception;
use Friendica\Core\Hook;
use Friendica\Core\Logger;
-use Friendica\Core\Session;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\User;
return [];
}
- if (!empty(self::$current_token)) {
- return self::$current_token;
- }
+ //if (!empty(self::$current_token)) {
+ // return self::$current_token;
+ //}
$source = $_REQUEST['source'] ?? '';
Hook::callAll('logged_in', $record);
- self::$current_user_id = local_user();
+ self::$current_user_id = DI::userSession()->getLocalUserId();
return self::$current_user_id;
}