make mod-follow "get"-able

This commit is contained in:
friendica 2011-12-18 12:41:46 -08:00
parent 5d6a098ce0
commit 622886a33c
2 changed files with 6 additions and 4 deletions

View file

@ -9,7 +9,7 @@ require_once('include/nav.php');
require_once('include/cache.php'); require_once('include/cache.php');
define ( 'FRIENDICA_PLATFORM', 'Friendica'); define ( 'FRIENDICA_PLATFORM', 'Friendica');
define ( 'FRIENDICA_VERSION', '2.3.1198' ); define ( 'FRIENDICA_VERSION', '2.3.1199' );
define ( 'DFRN_PROTOCOL_VERSION', '2.22' ); define ( 'DFRN_PROTOCOL_VERSION', '2.22' );
define ( 'DB_UPDATE_VERSION', 1112 ); define ( 'DB_UPDATE_VERSION', 1112 );

View file

@ -2,7 +2,7 @@
require_once('Scrape.php'); require_once('Scrape.php');
function follow_post(&$a) { function follow_init(&$a) {
if(! local_user()) { if(! local_user()) {
notice( t('Permission denied.') . EOL); notice( t('Permission denied.') . EOL);
@ -202,7 +202,9 @@ function follow_post(&$a) {
} }
} }
goaway($a->get_baseurl() . '/contacts/' . $contact_id); if(strstr($_SESSION['return_url'],'contacts'))
// goaway($_SESSION['return_url']); goaway($a->get_baseurl() . '/contacts/' . $contact_id);
goaway($_SESSION['return_url']);
// NOTREACHED // NOTREACHED
} }