From a25d841b85447d1c2be409f535d65b2c9202f324 Mon Sep 17 00:00:00 2001 From: Philipp Holzer Date: Mon, 21 Oct 2019 17:29:53 +0200 Subject: [PATCH] some improvements --- src/Module/Diaspora/Receive.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Module/Diaspora/Receive.php b/src/Module/Diaspora/Receive.php index bb33a705d5..978bccd833 100644 --- a/src/Module/Diaspora/Receive.php +++ b/src/Module/Diaspora/Receive.php @@ -51,7 +51,7 @@ class Receive extends BaseModule break; default: self::$logger->info('Wrong call.'); - throw new HTTPException\InternalServerErrorException('wrong call.'); + throw new HTTPException\BadRequestException('wrong call.'); break; } } @@ -134,7 +134,7 @@ class Receive extends BaseModule } } - self::$logger->info('Diaspora: Post encoded.'); + self::$logger->info('Diaspora: Post decoded.'); self::$logger->debug('Diaspora: Decoded message.', ['msg' => print_r($msg, true)]); if (!is_array($msg)) {