Don't show reblogged on single post

This commit is contained in:
Michael 2023-01-23 17:56:45 +00:00
parent 0364972242
commit 5a01fb0521
2 changed files with 2 additions and 3 deletions

View File

@ -295,7 +295,7 @@ class Statuses extends BaseApi
DI::mstdnError()->UnprocessableEntity(); DI::mstdnError()->UnprocessableEntity();
} }
System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid)); System::jsonExit(DI::mstdnStatus()->createFromUriId($this->parameters['id'], $uid, false));
} }
private function getApp(): string private function getApp(): string

View File

@ -71,8 +71,7 @@ class Token extends BaseApi
} }
} }
// "client_secret" is required for "client_credentials": https://www.oauth.com/oauth2-servers/access-tokens/client-credentials/ if (empty($request['client_id']) || empty($request['client_secret'])) {
if (empty($request['client_id']) || (($request['grant_type'] == 'client_credentials') && empty($request['client_secret']))) {
Logger::warning('Incomplete request data', ['request' => $request]); Logger::warning('Incomplete request data', ['request' => $request]);
DI::mstdnError()->Unauthorized('invalid_client', DI::l10n()->t('Incomplete request data')); DI::mstdnError()->Unauthorized('invalid_client', DI::l10n()->t('Incomplete request data'));
} }