]> git.mxchange.org Git - friendica.git/blobdiff - src/Module/ActivityPub/Objects.php
Use the post language for the language detection / config for quality
[friendica.git] / src / Module / ActivityPub / Objects.php
index 7a396949ee5aa62a8073db37f35dc17fa39d713f..bbb008690989283816f8b425eff4c9f78e14152f 100644 (file)
@@ -56,7 +56,7 @@ class Objects extends BaseModule
                        Logger::info('Provided GUID found.', ['guid' => $this->parameters['guid'], 'uri-id' => $itemuri['id']]);
                } else {
                        // The item URI does not always contain the GUID. This means that we have to search the URL instead
-                       $url = DI::baseUrl()->get() . '/' . DI::args()->getQueryString();
+                       $url = DI::baseUrl() . '/' . DI::args()->getQueryString();
                        $nurl = Strings::normaliseLink($url);
                        $ssl_url = str_replace('http://', 'https://', $nurl);
 
@@ -130,6 +130,6 @@ class Objects extends BaseModule
                // Relaxed CORS header for public items
                header('Access-Control-Allow-Origin: *');
 
-               System::jsonExit($data, 'application/activity+json');
+               $this->jsonExit($data, 'application/activity+json');
        }
 }