mirror of
https://framagit.org/hubzilla/core.git
synced 2026-06-21 00:52:33 -04:00
remouve updates stuff from import_directory_profile()
This commit is contained in:
@@ -942,7 +942,7 @@ class Libzot {
|
|||||||
// be in directories for the local realm (foo) and also the RED_GLOBAL realm.
|
// be in directories for the local realm (foo) and also the RED_GLOBAL realm.
|
||||||
|
|
||||||
if (array_key_exists('profile', $arr) && is_array($arr['profile']) && (!$other_realm)) {
|
if (array_key_exists('profile', $arr) && is_array($arr['profile']) && (!$other_realm)) {
|
||||||
$profile_changed = Libzotdir::import_directory_profile($xchan_hash, $arr['profile'], $address, $ud_flags, 1);
|
$profile_changed = Libzotdir::import_directory_profile($xchan_hash, $arr['profile']);
|
||||||
if ($profile_changed) {
|
if ($profile_changed) {
|
||||||
$what .= 'profile ';
|
$what .= 'profile ';
|
||||||
$changed = true;
|
$changed = true;
|
||||||
|
|||||||
@@ -438,7 +438,7 @@ class Libzotdir {
|
|||||||
call_hooks('local_dir_update', $arr);
|
call_hooks('local_dir_update', $arr);
|
||||||
|
|
||||||
if (perm_is_allowed($uid, '', 'view_profile')) {
|
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 {
|
else {
|
||||||
// they may have made it private
|
// they may have made it private
|
||||||
@@ -460,13 +460,10 @@ class Libzotdir {
|
|||||||
*
|
*
|
||||||
* @param string $hash
|
* @param string $hash
|
||||||
* @param array $profile
|
* @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
|
* @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);
|
logger('import_directory_profile', LOGGER_DEBUG);
|
||||||
if (! $hash)
|
if (! $hash)
|
||||||
@@ -606,9 +603,6 @@ class Libzotdir {
|
|||||||
*/
|
*/
|
||||||
call_hooks('import_directory_profile', $d);
|
call_hooks('import_directory_profile', $d);
|
||||||
|
|
||||||
if (($d['update']) && (! $suppress_update))
|
|
||||||
self::update_modtime($arr['xprof_hash'], $addr);
|
|
||||||
|
|
||||||
return $d['update'];
|
return $d['update'];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user