From 615eece22f1a5c964371dc5cb216c6841a3e0355 Mon Sep 17 00:00:00 2001 From: Michael Vogel Date: Thu, 26 Nov 2020 14:35:06 +0100 Subject: [PATCH] Update src/Module/Api/Mastodon/Unimplemented.php Co-authored-by: Hypolite Petovan --- src/Module/Api/Mastodon/Unimplemented.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Module/Api/Mastodon/Unimplemented.php b/src/Module/Api/Mastodon/Unimplemented.php index 3582f4b3b..c5adbe5d9 100644 --- a/src/Module/Api/Mastodon/Unimplemented.php +++ b/src/Module/Api/Mastodon/Unimplemented.php @@ -41,7 +41,7 @@ class Unimplemented extends BaseApi Logger::info('Unimplemented API call', ['path' => $path]); $error = DI::l10n()->t('API endpoint "%s" is not implemented', $path); $error_description = DI::l10n()->t('The API endpoint is currently not implemented but might be in the future.');; - $errorobj = New \Friendica\Object\Api\Mastodon\Error($error, $error_description); + $errorobj = new \Friendica\Object\Api\Mastodon\Error($error, $error_description); System::jsonError(501, $errorobj->toArray()); } }