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:
@@ -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);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user