aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Dircensor.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2023-05-03 22:42:52 +0200
committerMario Vavti <mario@mariovavti.com>2023-05-03 22:42:52 +0200
commit2d4b35fbc99062d52c6c32cacd158ceda661bb31 (patch)
tree03a64c452f06e295c5e97a596ec1b80d560141fe /Zotlabs/Module/Dircensor.php
parent57e2910477e81dfb9d8cf40334c013581d509617 (diff)
downloadvolse-hubzilla-2d4b35fbc99062d52c6c32cacd158ceda661bb31.tar.gz
volse-hubzilla-2d4b35fbc99062d52c6c32cacd158ceda661bb31.tar.bz2
volse-hubzilla-2d4b35fbc99062d52c6c32cacd158ceda661bb31.zip
provide possibility to flag via ajax calls to prevent pageloads
Diffstat (limited to 'Zotlabs/Module/Dircensor.php')
-rw-r--r--Zotlabs/Module/Dircensor.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/Zotlabs/Module/Dircensor.php b/Zotlabs/Module/Dircensor.php
index 3f03f7f87..4ce3a81c4 100644
--- a/Zotlabs/Module/Dircensor.php
+++ b/Zotlabs/Module/Dircensor.php
@@ -64,6 +64,13 @@ class Dircensor extends Controller {
info( t('Entry OK') . EOL);
}
+ if (isset($_REQUEST['aj'])) {
+ json_return_and_die([
+ 'success' => 1,
+ 'flag' => $flag
+ ]);
+ }
+
goaway(z_root() . '/directory');
}