From 5a01fb05219b5fc5f041fc029038b32b3cdfbc08 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 23 Jan 2023 17:56:45 +0000 Subject: [PATCH] Don't show reblogged on single post --- src/Module/Api/Mastodon/Statuses.php | 2 +- src/Module/OAuth/Token.php | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Module/Api/Mastodon/Statuses.php b/src/Module/Api/Mastodon/Statuses.php index 4c161193e..71681968d 100644 --- a/src/Module/Api/Mastodon/Statuses.php +++ b/src/Module/Api/Mastodon/Statuses.php @@ -295,7 +295,7 @@ class Statuses extends BaseApi 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 diff --git a/src/Module/OAuth/Token.php b/src/Module/OAuth/Token.php index 07f9bb8c6..ecb65048d 100644 --- a/src/Module/OAuth/Token.php +++ b/src/Module/OAuth/Token.php @@ -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']) || (($request['grant_type'] == 'client_credentials') && empty($request['client_secret']))) { + if (empty($request['client_id']) || empty($request['client_secret'])) { Logger::warning('Incomplete request data', ['request' => $request]); DI::mstdnError()->Unauthorized('invalid_client', DI::l10n()->t('Incomplete request data')); }