Skip to content

Commit 1f91268

Browse files
committed
Return offline games from public /games
Offline (config.live falsy) now only gates indexing, so disabled games stay visible in the public API.
1 parent ee0dbfa commit 1f91268

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

server.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -705,10 +705,8 @@ server.get(
705705
const config = {};
706706

707707
if ( game.config ) {
708-
if ( typeof game.config.live !== 'undefined' && !game.config.live ) {
709-
continue;
710-
}
711-
708+
// Offline games (config.live falsy) stay in the public
709+
// response — "offline" only stops indexing, not visibility.
712710
if ( game.config.boxart ) {
713711
config.boxart = game.config.boxart;
714712
}

0 commit comments

Comments
 (0)