Some more worker fine tuning
This commit is contained in:
parent
d2f2e1c371
commit
cf179188b6
7 changed files with 47 additions and 19 deletions
|
@ -17,9 +17,12 @@ function display_init(App $a) {
|
|||
if (substr($a->argv[2], -5) == '.atom') {
|
||||
$item_id = substr($a->argv[2], 0, -5);
|
||||
$xml = dfrn::itemFeed($item_id);
|
||||
if ($xml == '') {
|
||||
http_status_exit(500);
|
||||
}
|
||||
header("Content-type: application/atom+xml");
|
||||
echo $xml;
|
||||
http_status_exit(($xml) ? 200 : 500);
|
||||
killme();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue