aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Dircensor.php
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2023-05-03 15:25:47 +0200
committerMario Vavti <mario@mariovavti.com>2023-05-03 15:25:47 +0200
commitffbaa7e4dcda787897263c6cc4d13671f1fc6ed6 (patch)
tree619827ec7c88d41f9ffe1195c91cd8ddcaa8f5e7 /Zotlabs/Module/Dircensor.php
parentdf420361000a33f3e6f6982954c21a1c7a3168cf (diff)
downloadvolse-hubzilla-ffbaa7e4dcda787897263c6cc4d13671f1fc6ed6.tar.gz
volse-hubzilla-ffbaa7e4dcda787897263c6cc4d13671f1fc6ed6.tar.bz2
volse-hubzilla-ffbaa7e4dcda787897263c6cc4d13671f1fc6ed6.zip
when flagging an entry also flag its xtags and improved keywords query in dirsearch
Diffstat (limited to 'Zotlabs/Module/Dircensor.php')
-rw-r--r--Zotlabs/Module/Dircensor.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/Zotlabs/Module/Dircensor.php b/Zotlabs/Module/Dircensor.php
index 44c9148e8..3f03f7f87 100644
--- a/Zotlabs/Module/Dircensor.php
+++ b/Zotlabs/Module/Dircensor.php
@@ -47,7 +47,12 @@ class Dircensor extends Controller {
Libzotdir::update($xchan, $r[0]['xchan_url'], true, $flag);
- q("update xchan set xchan_censored = %d where xchan_hash = '%s'",
+ q("UPDATE xchan SET xchan_censored = %d WHERE xchan_hash = '%s'",
+ intval($flag),
+ dbesc($xchan)
+ );
+
+ q("UPDATE xtag SET xtag_flags = %d WHERE xtag_hash = '%s'",
intval($flag),
dbesc($xchan)
);