]> git.mxchange.org Git - friendica.git/commitdiff
make mod-follow "get"-able
authorfriendica <info@friendica.com>
Sun, 18 Dec 2011 20:41:46 +0000 (12:41 -0800)
committerfriendica <info@friendica.com>
Sun, 18 Dec 2011 20:41:46 +0000 (12:41 -0800)
boot.php
mod/follow.php

index b01effcbfba4d86e5bbb4e28890c36bca91e2b77..5cc77182aa3517352dc128f67ffaf82783e9862d 100644 (file)
--- a/boot.php
+++ b/boot.php
@@ -9,7 +9,7 @@ require_once('include/nav.php');
 require_once('include/cache.php');
 
 define ( 'FRIENDICA_PLATFORM',     'Friendica');
-define ( 'FRIENDICA_VERSION',      '2.3.1198' );
+define ( 'FRIENDICA_VERSION',      '2.3.1199' );
 define ( 'DFRN_PROTOCOL_VERSION',  '2.22'    );
 define ( 'DB_UPDATE_VERSION',      1112      );
 
index 5fdb938157719a77a186e60b0fe0cf5e0a85a2d0..f99d91757cc37aebf9cd9955c805110cd0a97ae7 100644 (file)
@@ -2,7 +2,7 @@
 
 require_once('Scrape.php');
 
-function follow_post(&$a) {
+function follow_init(&$a) {
 
        if(! local_user()) {
                notice( t('Permission denied.') . EOL);
@@ -202,7 +202,9 @@ function follow_post(&$a) {
                }
        }
 
-       goaway($a->get_baseurl() . '/contacts/' . $contact_id);
-//     goaway($_SESSION['return_url']);
+       if(strstr($_SESSION['return_url'],'contacts'))
+               goaway($a->get_baseurl() . '/contacts/' . $contact_id);
+
+       goaway($_SESSION['return_url']);
        // NOTREACHED
 }