mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 02:45:16 +02:00
Bugfix Diaspora: We exited with the wrong return values and the guid for messages was too short
This commit is contained in:
parent
48e3f4f47f
commit
696404739b
5 changed files with 29 additions and 18 deletions
|
@ -63,14 +63,14 @@ function receive_post(App $a) {
|
|||
|
||||
logger('mod-diaspora: dispatching', LOGGER_DEBUG);
|
||||
|
||||
$ret = 0;
|
||||
$ret = true;
|
||||
if ($public) {
|
||||
Diaspora::dispatch_public($msg);
|
||||
} else {
|
||||
$ret = Diaspora::dispatch($importer, $msg);
|
||||
}
|
||||
|
||||
http_status_exit(($ret) ? $ret : 200);
|
||||
http_status_exit(($ret) ? 200 : 500);
|
||||
// NOTREACHED
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue