]> git.mxchange.org Git - friendica.git/commitdiff
Cast the base URL as string in /friendica/json
authorHypolite Petovan <hypolite@mrpetovan.com>
Sun, 12 Mar 2023 21:55:57 +0000 (17:55 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 12 Mar 2023 21:55:57 +0000 (17:55 -0400)
- This was causing the data.url key to have no value, which broke the directory integration

src/Module/Friendica.php

index 2c669e886c9e5d74f5e889e50a20b6d85af15fbb..90869878e47b131e32aab5c784a00902496419ac 100644 (file)
@@ -172,7 +172,7 @@ class Friendica extends BaseModule
 
                $data = [
                        'version'          => App::VERSION,
-                       'url'              => DI::baseUrl(),
+                       'url'              => (string)DI::baseUrl(),
                        'addons'           => $visible_addons,
                        'locked_features'  => $locked_features,
                        'explicit_content' => intval($config->get('system', 'explicit_content', 0)),