|
|
@ -37,7 +37,7 @@ function dfrn_poll_init(App $a) |
|
|
|
$nickname = $a->argv[1]; |
|
|
|
header("Content-type: application/atom+xml"); |
|
|
|
echo OStatus::feed($nickname, $last_update, 10); |
|
|
|
killme(); |
|
|
|
exit(); |
|
|
|
} |
|
|
|
|
|
|
|
$direction = -1; |
|
|
@ -71,7 +71,7 @@ function dfrn_poll_init(App $a) |
|
|
|
Logger::log('dfrn_poll: public feed request from ' . $_SERVER['REMOTE_ADDR'] . ' for ' . $user); |
|
|
|
header("Content-type: application/atom+xml"); |
|
|
|
echo DFRN::feed('', $user, $last_update, 0, $hidewall); |
|
|
|
killme(); |
|
|
|
exit(); |
|
|
|
} |
|
|
|
|
|
|
|
if (($type === 'profile') && (!strlen($sec))) { |
|
|
@ -198,7 +198,7 @@ function dfrn_poll_init(App $a) |
|
|
|
|
|
|
|
header("Content-type: text/xml"); |
|
|
|
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?><dfrn_poll><status>0</status><challenge>$decoded_challenge</challenge><sec>$sec</sec></dfrn_poll>"; |
|
|
|
killme(); |
|
|
|
exit(); |
|
|
|
// NOTREACHED
|
|
|
|
} else { |
|
|
|
// old protocol
|
|
|
@ -290,7 +290,7 @@ function dfrn_poll_post(App $a) |
|
|
|
|
|
|
|
header("Content-type: text/xml"); |
|
|
|
echo "<?xml version=\"1.0\" encoding=\"UTF-8\"?><dfrn_poll><status>0</status><challenge>$decoded_challenge</challenge><sec>$sec</sec></dfrn_poll>"; |
|
|
|
killme(); |
|
|
|
exit(); |
|
|
|
// NOTREACHED
|
|
|
|
} |
|
|
|
} |
|
|
@ -307,7 +307,7 @@ function dfrn_poll_post(App $a) |
|
|
|
); |
|
|
|
|
|
|
|
if (!DBA::isResult($r)) { |
|
|
|
killme(); |
|
|
|
exit(); |
|
|
|
} |
|
|
|
|
|
|
|
$type = $r[0]['type']; |
|
|
@ -336,7 +336,7 @@ function dfrn_poll_post(App $a) |
|
|
|
|
|
|
|
$r = q("SELECT * FROM `contact` WHERE `blocked` = 0 AND `pending` = 0 $sql_extra LIMIT 1"); |
|
|
|
if (!DBA::isResult($r)) { |
|
|
|
killme(); |
|
|
|
exit(); |
|
|
|
} |
|
|
|
|
|
|
|
$contact = $r[0]; |
|
|
@ -368,7 +368,7 @@ function dfrn_poll_post(App $a) |
|
|
|
<description>$text</description> |
|
|
|
</reputation> |
|
|
|
";
|
|
|
|
killme(); |
|
|
|
exit(); |
|
|
|
// NOTREACHED
|
|
|
|
} else { |
|
|
|
// Update the writable flag if it changed
|
|
|
@ -391,7 +391,7 @@ function dfrn_poll_post(App $a) |
|
|
|
header("Content-type: application/atom+xml"); |
|
|
|
$o = DFRN::feed($dfrn_id, $a->argv[1], $last_update, $direction); |
|
|
|
echo $o; |
|
|
|
killme(); |
|
|
|
exit(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -573,7 +573,7 @@ function dfrn_poll_content(App $a) |
|
|
|
. "\t" . '<dfrn_id>' . $encrypted_id . '</dfrn_id>' . "\r\n" |
|
|
|
. "\t" . '<challenge>' . $challenge . '</challenge>' . "\r\n" |
|
|
|
. '</dfrn_poll>' . "\r\n"; |
|
|
|
killme(); |
|
|
|
exit(); |
|
|
|
// NOTREACHED
|
|
|
|
} |
|
|
|
} |
|
|
|