]> git.mxchange.org Git - friendica.git/commitdiff
allow other destinations according to protocol
authorFriendika <info@friendika.com>
Fri, 1 Apr 2011 21:39:09 +0000 (14:39 -0700)
committerFriendika <info@friendika.com>
Fri, 1 Apr 2011 21:39:09 +0000 (14:39 -0700)
boot.php
mod/dfrn_poll.php

index e32e9a8fa000099b59da43f41330dbe80f2cc14b..f03487cb33bf739c7214a42fee4aafceae9177a6 100644 (file)
--- 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   );
 
index 82ad70907040e4246a9e8e12e0eb82ee58e52702..25b28c63cef1e7a67aa24eacf43f16e5c9c6dc52 100644 (file)
@@ -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);