aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Lib
diff options
context:
space:
mode:
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);
}