X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=mod%2Fdfrn_poll.php;h=334e103079da11956134602988bceaabdd183a1a;hb=fecef140d5181348e1f46cf8405f13bb05401b3e;hp=52272efade9a0a0a61585e0892e2e75c0f6bbb97;hpb=d6a75a0391bfe2021cca0bba9f054044ef79cab7;p=friendica.git diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index 52272efade..334e103079 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -26,8 +26,9 @@ function dfrn_poll_init(&$a) { } if(($dfrn_id === '') && (! x($_POST,'dfrn_id')) && ($a->argc > 1)) { + logger('dfrn_poll: public feed request from ' . $_SERVER['REMOTE_ADDR'] ); header("Content-type: application/atom+xml"); - $o = get_feed_for($a, '*', $a->argv[1],$last_update); + $o = get_feed_for($a, '', $a->argv[1],$last_update); echo $o; killme(); } @@ -73,6 +74,7 @@ function dfrn_poll_init(&$a) { if((int) $xml->status == 1) { $_SESSION['authenticated'] = 1; $_SESSION['visitor_id'] = $r[0]['id']; + $_SESSION['visitor_home'] = $r[0]['url']; notice( $r[0]['username'] . t(' welcomes ') . $r[0]['name'] . EOL); // Visitors get 1 day session. $session_id = session_id(); @@ -386,6 +388,7 @@ function dfrn_poll_content(&$a) { if(((int) $xml->status == 0) && ($xml->challenge == $hash) && ($xml->sec == $sec)) { $_SESSION['authenticated'] = 1; $_SESSION['visitor_id'] = $r[0]['id']; + $_SESSION['visitor_home'] = $r[0]['url']; notice( $r[0]['username'] . t(' welcomes ') . $r[0]['name'] . EOL); // Visitors get 1 day session. $session_id = session_id();