From f72fb974a9274f2075c7e0b8db9eee2fdc5d81e6 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Thu, 27 Apr 2023 07:07:38 +0200 Subject: for flag updates also match site directory and ud host --- Zotlabs/Lib/Libzotdir.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Zotlabs/Lib') 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); } -- cgit v1.2.3