add 'quiet' paramter to redir and dfrn_poll to allow calls that don't produce a Welcome info

This commit is contained in:
Zach Prezkuta 2013-02-04 20:34:42 -07:00
commit cc38986c20
2 changed files with 8 additions and 3 deletions

View file

@ -3,6 +3,7 @@
function redir_init(&$a) {
$url = ((x($_GET,'url')) ? $_GET['url'] : '');
$quiet = ((x($_GET,'quiet')) ? '&quiet=1' : '');
// traditional DFRN
@ -43,7 +44,7 @@ function redir_init(&$a) {
logger('mod_redir: ' . $r[0]['name'] . ' ' . $sec, LOGGER_DEBUG);
$dest = (($url) ? '&destination_url=' . $url : '');
goaway ($r[0]['poll'] . '?dfrn_id=' . $dfrn_id
. '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile&sec=' . $sec . $dest );
. '&dfrn_version=' . DFRN_PROTOCOL_VERSION . '&type=profile&sec=' . $sec . $dest . $quiet );
}
if(local_user())