X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FModule%2FApi%2FMastodon%2FFilters.php;h=c2ee8034304a3dbd8dceae054e824f4771969151;hb=85f57e69faaca3645c596afd12e4b024194ae349;hp=cdcefc97f9a36fa3b8e6063ad98f28963d3c746e;hpb=1cc341033f28f35b66400a394d1031c2e885a302;p=friendica.git diff --git a/src/Module/Api/Mastodon/Filters.php b/src/Module/Api/Mastodon/Filters.php index cdcefc97f9..c2ee803430 100644 --- a/src/Module/Api/Mastodon/Filters.php +++ b/src/Module/Api/Mastodon/Filters.php @@ -1,6 +1,6 @@ response->unsupported(Router::POST, $request); + } + /** - * @param array $parameters * @throws \Friendica\Network\HTTPException\InternalServerErrorException */ - public static function rawContent(array $parameters = []) + protected function rawContent(array $request = []) { - System::jsonError(404, ['error' => 'Record not found']); + self::checkAllowedScope(self::SCOPE_READ); + + System::jsonExit([]); } }