]> git.mxchange.org Git - friendica.git/commitdiff
Don't show reblogged on single post
authorMichael <heluecht@pirati.ca>
Mon, 23 Jan 2023 17:56:45 +0000 (17:56 +0000)
committerMichael <heluecht@pirati.ca>
Mon, 23 Jan 2023 17:56:45 +0000 (17:56 +0000)
src/Module/Api/Mastodon/Statuses.php
src/Module/OAuth/Token.php

index 4c161193e932663f04a8a66c82e64c68238665b3..71681968db2c6cddeb3952de509bba74cf52dc14 100644 (file)
@@ -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
index 07f9bb8c6355321f3fa9a9205b1162eff3df0428..ecb65048d02303c7bb4c1bc7f349daddcf0d11f5 100644 (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']) || (($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'));
                }