Board: no repeated banners (Marty 2026-11-13): a member whose spot is on the board gets no Banner Spin fill tile, and no image or Banner Spin code appears twice on one board

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-13 14:57:25 -06:00
parent 62985840f7
commit 5d148a5b3b
2 changed files with 11 additions and 2 deletions
+1 -1
View File
@@ -478,7 +478,7 @@ const server = http.createServer(async (req, res) => {
for (const m of chain.allMembers()) {
const r = await lsSpins({ wallet: m.address }).catch(() => null);
const sp = r && r.account && (r.spins || []).find(x => !x.paused && x.banners > 0);
if (sp) out.push({ img: 'https://rubav.com/i/' + sp.code + '.gif', link: 'https://rubav.com/c/' + sp.code + '?placement=board&s1=fill', title: (r.username ? '@' + r.username + ': ' : '') + sp.name });
if (sp) out.push({ owner: m.address, img: 'https://rubav.com/i/' + sp.code + '.gif', link: 'https://rubav.com/c/' + sp.code + '?placement=board&s1=fill', title: (r.username ? '@' + r.username + ': ' : '') + sp.name });
}
board.setMemberSpins(out);
};