aboutsummaryrefslogtreecommitdiffstats
path: root/mod/rmagic.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-07-17 19:07:39 -0700
committerfriendica <info@friendica.com>2014-07-17 19:07:39 -0700
commit0cb81714d80e3d51dc4939664425b7d1978b5d06 (patch)
treef90b6ddaafd2c10aba5a68a11cc4d45b90e30a1b /mod/rmagic.php
parent39632f65b6781d869fc420d25f3dbc153fde48b6 (diff)
downloadvolse-hubzilla-0cb81714d80e3d51dc4939664425b7d1978b5d06.tar.gz
volse-hubzilla-0cb81714d80e3d51dc4939664425b7d1978b5d06.tar.bz2
volse-hubzilla-0cb81714d80e3d51dc4939664425b7d1978b5d06.zip
better handling of interactive likes
Diffstat (limited to 'mod/rmagic.php')
-rw-r--r--mod/rmagic.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/rmagic.php b/mod/rmagic.php
index 946277327..de81cdcde 100644
--- a/mod/rmagic.php
+++ b/mod/rmagic.php
@@ -65,7 +65,11 @@ function rmagic_post(&$a) {
}
if($url) {
- $dest = z_root() . '/' . str_replace('zid=','zid_=',$a->query_string);
+ if($_SESSION['return_url'])
+ $dest = urlencode(z_root() . '/' . str_replace('zid=','zid_=',$_SESSION['return_url']));
+ else
+ $dest = urlencode(z_root() . '/' . str_replace('zid=','zid_=',$a->query_string));
+
goaway($url . '/magic' . '?f=&dest=' . $dest);
}
}