]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Xrd.php
Prevent settings/userexport to be used by anonymous users
[friendica.git] / src / Module / Xrd.php
index 87adef5cfc9e4736958cfcee225fafccb712a397..a58e915a768dcde39474e425477cbbee8b9ff2e3 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2021, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -78,7 +78,7 @@ class Xrd extends BaseModule
                        $name = substr($local, 0, strpos($local, '@'));
                }
 
-               if ($name == DI::config()->get('system', 'actor_name')) {
+               if ($name == User::getActorName()) {
                        $owner = User::getSystemAccount();
                        if (empty($owner)) {
                                throw new \Friendica\Network\HTTPException\NotFoundException();