aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-27 15:25:04 -0800
committerfriendica <info@friendica.com>2014-01-27 15:25:04 -0800
commit24bac92acdf04a49eb65fc947f25fafb2b2044fa (patch)
treeca56eed9167ac0d886f7781dc1b62300d8ca584b
parent9551f6b40485e951db25f6c1b31b1f46cbeda5cd (diff)
downloadvolse-hubzilla-24bac92acdf04a49eb65fc947f25fafb2b2044fa.tar.gz
volse-hubzilla-24bac92acdf04a49eb65fc947f25fafb2b2044fa.tar.bz2
volse-hubzilla-24bac92acdf04a49eb65fc947f25fafb2b2044fa.zip
after rposting - if there's no remote_return, go to your matrix page rather than leave you on a blank rpost page.
-rw-r--r--mod/rpost.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/rpost.php b/mod/rpost.php
index 8e01ef5d4..852a57d78 100644
--- a/mod/rpost.php
+++ b/mod/rpost.php
@@ -65,8 +65,10 @@ function rpost_content(&$a) {
if($_REQUEST['remote_return']) {
$_SESSION['remote_return'] = $_REQUEST['remote_return'];
}
- if(argc() > 1 && argv(1) === 'return' && $_SESSION['remote_return']) {
- goaway($_SESSION['remote_return']);
+ if(argc() > 1 && argv(1) === 'return') {
+ if($_SESSION['remote_return'])
+ goaway($_SESSION['remote_return']);
+ goaway(z_root() . '/network');
}
$plaintext = true;