better handling of interactive likes

This commit is contained in:
friendica
2014-07-17 19:07:39 -07:00
parent 39632f65b6
commit 0cb81714d8
2 changed files with 19 additions and 14 deletions

View File

@@ -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);
}
}