From ae074153c8367c9fac143ac29349b9f9d802e90a Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 12 Apr 2023 18:40:51 +0200 Subject: remouve updates stuff from import_directory_profile() --- Zotlabs/Lib/Libzotdir.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'Zotlabs/Lib/Libzotdir.php') diff --git a/Zotlabs/Lib/Libzotdir.php b/Zotlabs/Lib/Libzotdir.php index c595f0b3f..025326d51 100644 --- a/Zotlabs/Lib/Libzotdir.php +++ b/Zotlabs/Lib/Libzotdir.php @@ -438,7 +438,7 @@ class Libzotdir { call_hooks('local_dir_update', $arr); if (perm_is_allowed($uid, '', 'view_profile')) { - self::import_directory_profile($hash, $arr['profile'], $p[0]['xchan_url'], 0, 1); + self::import_directory_profile($hash, $arr['profile']); } else { // they may have made it private @@ -460,13 +460,10 @@ class Libzotdir { * * @param string $hash * @param array $profile - * @param string $addr - * @param number $ud_flags (optional) UPDATE_FLAGS_UPDATED - * @param number $suppress_update (optional) default 0 * @return boolean $updated if something changed */ - static function import_directory_profile($hash, $profile, $addr, $ud_flags = UPDATE_FLAGS_UPDATED, $suppress_update = 0) { + static function import_directory_profile($hash, $profile) { logger('import_directory_profile', LOGGER_DEBUG); if (! $hash) @@ -606,9 +603,6 @@ class Libzotdir { */ call_hooks('import_directory_profile', $d); - if (($d['update']) && (! $suppress_update)) - self::update_modtime($arr['xprof_hash'], $addr); - return $d['update']; } -- cgit v1.2.3