mirror of
https://github.com/rommapp/romm.git
synced 2026-11-30 02:22:44 +01:00
Three separate problems, all found by the bots on #4174: The recommendations block was inserted between `convert_images_to_webp_task .init()` and the `_enqueue_convert_images_to_webp()` call beneath it, so the WebP backfill only enqueued when recommendations were enabled and enqueued even when WebP conversion was off. Moved back under its own flag; the diff against master is now purely additive. Invalidating the cached feed from the ROM-user endpoint missed every other writer of the fields it scores on: play-session ingestion, save and state uploads, and the RetroAchievements sync all move `last_played`, `status` or `now_playing` through `update_rom_user` without passing that endpoint, so a game played after loading Home left the ranking stale for the cache TTL. Invalidation moves to `update_rom_user`, which every writer goes through. The feed ranked exactly as many entries as were asked for and applied visibility filtering afterwards, so a user with hidden ROMs got a short row and, if the hidden games ranked highest, an empty one. It now ranks deeper for those users only, mirroring what the similar-games endpoint already did. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>