-require_once('include/salmon.php');
-require_once('include/crypto.php');
-require_once('include/diaspora.php');
-
-
-function receive_post(App $a) {
-
-
- $enabled = intval(get_config('system','diaspora_enabled'));
- if (! $enabled) {
- logger('mod-diaspora: disabled');
- http_status_exit(500);
+/**
+ * @param App $a App
+ * @return void
+ * @throws ImagickException
+ * @throws \Friendica\Network\HTTPException\InternalServerErrorException
+ */
+function receive_post(App $a)
+{
+ $enabled = intval(Config::get('system', 'diaspora_enabled'));
+ if (!$enabled) {
+ Logger::log('mod-diaspora: disabled');
+ throw new \Friendica\Network\HTTPException\InternalServerErrorException();