diff options
author | Mario Vavti <mario@mariovavti.com> | 2023-04-12 17:51:09 +0200 |
---|---|---|
committer | Mario Vavti <mario@mariovavti.com> | 2023-04-12 17:51:09 +0200 |
commit | 3233d5485f2b4284e3c386d51b540f15563955ce (patch) | |
tree | fa245c4ac34d1a53bfea1d24789628d07b5f110b /Zotlabs/Lib/Libzot.php | |
parent | aa06400a50122dc7a8472e4c6144ac8ba6cbcc51 (diff) | |
parent | 30724bd7c43f52361fbcc7d912545255bd351757 (diff) | |
download | volse-hubzilla-3233d5485f2b4284e3c386d51b540f15563955ce.tar.gz volse-hubzilla-3233d5485f2b4284e3c386d51b540f15563955ce.tar.bz2 volse-hubzilla-3233d5485f2b4284e3c386d51b540f15563955ce.zip |
Merge branch 'dev' of https://framagit.org/hubzilla/core into dev
Diffstat (limited to 'Zotlabs/Lib/Libzot.php')
-rw-r--r-- | Zotlabs/Lib/Libzot.php | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Zotlabs/Lib/Libzot.php b/Zotlabs/Lib/Libzot.php index 814aebf47..9a6b64c75 100644 --- a/Zotlabs/Lib/Libzot.php +++ b/Zotlabs/Lib/Libzot.php @@ -712,8 +712,6 @@ class Libzot { if (!array_key_exists('connect_url', $arr)) $arr['connect_url'] = ''; - $new_xchan = false; - if ($r) { if ($arr['photo'] && array_key_exists('updated', $arr['photo']) && $arr['photo']['updated'] > $r[0]['xchan_photo_date']) @@ -831,7 +829,6 @@ class Libzot { ); $what .= 'new_xchan'; - $new_xchan = true; $changed = true; } @@ -979,8 +976,8 @@ class Libzot { } } - if ($ud_arr || ($new_xchan && in_array($dirmode, [DIRECTORY_MODE_PRIMARY, DIRECTORY_MODE_SECONDARY]))) { - // update updates if we were provided an ud_arr or the xchan is new and we are some sort of directory + if ($changed) { + // update updates if anything changed Libzotdir::update_modtime($xchan_hash, $address); } |