aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
authorMario Vavti <mario@mariovavti.com>2023-04-27 07:07:38 +0200
committerMario Vavti <mario@mariovavti.com>2023-04-27 07:07:38 +0200
commitf72fb974a9274f2075c7e0b8db9eee2fdc5d81e6 (patch)
treebf325bbee21ff1e189474050bd82d6246ee33ac0 /Zotlabs/Lib
parentbdb25315b6f01f1963b21f6e0c0bd5ec2959c62e (diff)
downloadvolse-hubzilla-f72fb974a9274f2075c7e0b8db9eee2fdc5d81e6.tar.gz
volse-hubzilla-f72fb974a9274f2075c7e0b8db9eee2fdc5d81e6.tar.bz2
volse-hubzilla-f72fb974a9274f2075c7e0b8db9eee2fdc5d81e6.zip
for flag updates also match site directory and ud host
Diffstat (limited to 'Zotlabs/Lib')
-rw-r--r--Zotlabs/Lib/Libzotdir.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Zotlabs/Lib/Libzotdir.php b/Zotlabs/Lib/Libzotdir.php
index acac40d3b..2c33b6a27 100644
--- a/Zotlabs/Lib/Libzotdir.php
+++ b/Zotlabs/Lib/Libzotdir.php
@@ -288,7 +288,10 @@ class Libzotdir {
}
// the host is trusted and flags have changed
- if (in_array($t['host'], $dir_trusted_hosts) && intval($r[0]['ud_flags']) !== intval($t['flags'])) {
+ if (in_array($t['host'], $dir_trusted_hosts) &&
+ $rr['site_directory'] === $t['host'] &&
+ intval($r[0]['ud_flags']) !== intval($t['flags'])) {
+
$update = (($update) ? DIRECTORY_UPDATE_BOTH : DIRECTORY_UPDATE_FLAGS);
}