9809953ae0
When a door finds no visit pack and no video, /api/door/open serves a house ad from rates.doorHouseAds (RM Circle, Drip Runner, Gem Kingdom, PolHunter by default; ref templates carry the player's IAP username where the program takes a share link). Rotation: never the same program twice in a row, else the one least recently shown to that member today. Same dwell + Halloween icon check. No advertiser charge and no campaign imps, but it counts toward doorCapPerDay (visit_repeat row with campaign 0). Callback and receipt add house: true and program, with credits 0, host null, campaignId 0. doorHouseAds = [] restores none=1. Admin rates table keeps text columns as text so the list survives a save. qa/door.mjs covers it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>