From 6e38ca5989dad330cc6818648493c9efefb179d9 Mon Sep 17 00:00:00 2001 From: Terranom674 Date: Mon, 17 Aug 2026 23:26:13 +0200 Subject: [PATCH] Finalize direct NC sync with Piwigo album and photo maintenance --- include/nc_productive_ws.inc.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/include/nc_productive_ws.inc.php b/include/nc_productive_ws.inc.php index 77b7ab5..a4cab35 100644 --- a/include/nc_productive_ws.inc.php +++ b/include/nc_productive_ws.inc.php @@ -404,9 +404,18 @@ function bratonien_tools_ws_nc_sync_productive($params, &$service) } $counts['metadata_updated'] = count($metadata_updates); + // Mirror Piwigo 16.4.0 Maintenance -> "Update albums informations". + // This repairs the derived album hierarchy and counters that the direct + // API sync otherwise bypasses when no admin maintenance page is invoked. + images_integrity(); + categories_integrity(); + update_uppercats(); + update_category('all'); + update_global_rank(); + invalidate_user_cache(true); + // Mirror Piwigo 16.4.0 Maintenance -> "Update photos information". - // This finalizes physical photo paths and the derived photo information - // after the direct API synchronization without invoking an admin page. + // This finalizes physical paths, ratings and derived photo information. images_integrity(); update_path(); include_once(PHPWG_ROOT_PATH.'include/functions_rate.inc.php');