aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Item.php
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-06-18 07:18:09 +0000
committerMario <mario@mariovavti.com>2024-06-18 07:18:09 +0000
commit3f5cfc8fa2bbce74dd899b9cee65d1fc3891e8e1 (patch)
tree16e0cc5beca886592d5d8f66517b296b2ab3820a /Zotlabs/Module/Item.php
parent0097840e3294f70f1c6729731d23405e2359c950 (diff)
downloadvolse-hubzilla-3f5cfc8fa2bbce74dd899b9cee65d1fc3891e8e1.tar.gz
volse-hubzilla-3f5cfc8fa2bbce74dd899b9cee65d1fc3891e8e1.tar.bz2
volse-hubzilla-3f5cfc8fa2bbce74dd899b9cee65d1fc3891e8e1.zip
fix return to blank page after editing post under some circumstances
Diffstat (limited to 'Zotlabs/Module/Item.php')
-rw-r--r--Zotlabs/Module/Item.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/Zotlabs/Module/Item.php b/Zotlabs/Module/Item.php
index 0b46f2baf..3d13655d2 100644
--- a/Zotlabs/Module/Item.php
+++ b/Zotlabs/Module/Item.php
@@ -1262,6 +1262,11 @@ class Item extends Controller {
if ((x($_REQUEST, 'return')) && strlen($return_path)) {
logger('return: ' . $return_path);
+
+ if ($return_path === 'hq') {
+ goaway(z_root() . '/hq/' . $datarray['uuid']);
+ }
+
goaway(z_root() . "/" . $return_path);
}
killme();