]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/Magic.php
New user account type "Channel Relay"
[friendica.git] / src / Module / Magic.php
index dc0d4f8ad118e5ffaf67069a354eac9f407b4c07..7b60299e20ded83dd6aef031283e2745aec0c706 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2010-2023, the Friendica project
+ * @copyright Copyright (C) 2010-2024, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -155,7 +155,7 @@ class Magic extends BaseModule
                        System::externalRedirect($dest);
                }
 
-               $j = json_decode($curlResult->getBody(), true);
+               $j = json_decode($curlResult->getBodyString(), true);
                if (empty($j) || !$j['success']) {
                        $this->logger->notice('Invalid JSON, redirecting to destination.', ['json' => $j, 'dest' => $dest]);
                        $this->app->redirect($dest);