]> git.mxchange.org Git - friendica.git/commitdiff
some improvements
authorPhilipp Holzer <admin+github@philipp.info>
Mon, 21 Oct 2019 15:29:53 +0000 (17:29 +0200)
committerPhilipp Holzer <admin+github@philipp.info>
Mon, 21 Oct 2019 15:29:53 +0000 (17:29 +0200)
src/Module/Diaspora/Receive.php

index bb33a705d5cfa30805220936b0e819aa8efb8e6d..978bccd833027b15ffd0b9e5da35929e5e661082 100644 (file)
@@ -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)) {