diff options
author | friendica <info@friendica.com> | 2011-12-18 12:41:46 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2011-12-18 12:41:46 -0800 |
commit | 622886a33c459e5290bdfcf491a1c8f9ed132207 (patch) | |
tree | 224e85147daf8186b8b285fc62f46b222941f921 /mod | |
parent | 5d6a098ce0bf14e372c297ed09c9f0452fa60ec7 (diff) | |
download | volse-hubzilla-622886a33c459e5290bdfcf491a1c8f9ed132207.tar.gz volse-hubzilla-622886a33c459e5290bdfcf491a1c8f9ed132207.tar.bz2 volse-hubzilla-622886a33c459e5290bdfcf491a1c8f9ed132207.zip |
make mod-follow "get"-able
Diffstat (limited to 'mod')
-rw-r--r-- | mod/follow.php | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mod/follow.php b/mod/follow.php index 5fdb93815..f99d91757 100644 --- a/mod/follow.php +++ b/mod/follow.php @@ -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 } |