From 4b356e59ec36a2a2ef1a0224ecf86254090466e3 Mon Sep 17 00:00:00 2001 From: Friendika Date: Fri, 1 Apr 2011 14:39:09 -0700 Subject: allow other destinations according to protocol --- boot.php | 2 +- mod/dfrn_poll.php | 8 +++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/boot.php b/boot.php index e32e9a8fa..f03487cb3 100644 --- a/boot.php +++ b/boot.php @@ -2,7 +2,7 @@ set_time_limit(0); -define ( 'FRIENDIKA_VERSION', '2.1.935' ); +define ( 'FRIENDIKA_VERSION', '2.1.936' ); define ( 'DFRN_PROTOCOL_VERSION', '2.2' ); define ( 'DB_UPDATE_VERSION', 1045 ); diff --git a/mod/dfrn_poll.php b/mod/dfrn_poll.php index 82ad70907..25b28c63c 100644 --- a/mod/dfrn_poll.php +++ b/mod/dfrn_poll.php @@ -424,9 +424,8 @@ function dfrn_poll_content(&$a) { } if(($type === 'profile') && (strlen($sec))) { - // URL reply - + // URL reply if($dfrn_version < 2.2) { $s = fetch_url($r[0]['poll'] @@ -455,9 +454,12 @@ function dfrn_poll_content(&$a) { $dest = $a->get_baseurl() . '/photos/' . $profile; break; case 'status': - default: + case '': $dest = $a->get_baseurl() . '/profile/' . $profile; break; + default: + $dest = $destination_url; + break; } logger("dfrn_poll: sec profile: " . $s, LOGGER_DATA); -- cgit v1.2.3