]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Debug/Probe.php
Merge branch 'develop' into blocks-and-mutes-fixes
[friendica.git] / src / Module / Debug / Probe.php
index 24c8d745c52b1f2abb334178b2ab6913710f2bd8..b67b73dfdaa3ff9b5b60e1476eb0cc8fb623d3ad 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2021, the Friendica project
+ * @copyright Copyright (C) 2010-2023, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -32,9 +32,9 @@ use Friendica\Network\Probe as NetworkProbe;
  */
 class Probe extends BaseModule
 {
-       public static function content()
+       protected function content(array $request = []): string
        {
-               if (!local_user()) {
+               if (!DI::userSession()->getLocalUserId()) {
                        throw new HTTPException\ForbiddenException(DI::l10n()->t('Only logged in users are permitted to perform a probing.'));
                }