One swap per banner + admin takedown (Marty 2026-11-15: "allow the member to swap it only, and they can only do it one time. Admin takes down the option to credit back or none.")

Member swap: My Banners shows "Swap image or link" on a banner that is waiting or in the loop, usable once (then "Swap used"). POST /api/my/banners/<id>/swap changes the image and/or link (or a Banner Spin to another of the member's own 125x125/250x250 spins via lsspins), same checks as a new post (checkLink, probeLink, upload/https image checks); id, place, clicks and loop progress stay. Logged on the banner (swaps: old/new image + link, time). No withdraw, removal or refund for members.

Admin takedown: /admin finds banners (#id, wallet, username), POST /api/admin/banners/<id>/takedown {reason required, credit: back|none}. The banner is hidden at once (splash loop + waiting line show a house tile in its place, /go goes home, no look/teaser/swap); its place rides out on time so nobody moves, then it ends with no cycle, no network views, no prize count. My Banners shows "Taken down" with the reason. Restore reverses a given credit (when the owner still holds one) and, if its place rode out meanwhile, records the cycle then. Admin ledger: GET /api/admin/actions (who, when, reason, credit decision).

Chatbot: CANNED 'swap' + FACTS line (KNOWLEDGE_DATE already 2026-11-15), chat-qa entry. my.js?v=4, admin.js?v=3, vbb.css?v=8.
Tests: smoke section 15 (swap once, refused twice, keeps place, bad link/image refused, spin swap, takedown credit back vs none, others keep places, ride-out without a cycle, restore, admin ledger, phone UI): 308/308 with the committed networksso.js; chatbot.test 182/182; qa:chain 49/49.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-15 15:18:49 -06:00
parent 666cdd9569
commit 8e6d2f9cd0
11 changed files with 409 additions and 28 deletions
+12
View File
@@ -185,3 +185,15 @@ footer.foot .netline b{color:#fff} footer.foot .netline .here{color:#fff;font-we
.toast.buy{background:var(--amber-soft)} .toast.prize{background:var(--ok-soft)}
.legal .card h2{font-size:21px} .legal .card p,.legal .card li{max-width:760px} .legal .card ul{padding-left:20px} .legal .card li{margin:6px 0}
#facts th{font:700 11.5px var(--mono);letter-spacing:.06em;text-transform:uppercase;vertical-align:top}
/* one-time swap + admin takedown (2026-11-15) */
.pill.down{background:#14121f;color:#fff}
.mine .item.down{opacity:.7}.mine .item.down img{filter:grayscale(1)}
.mine .item .swap-row{margin-top:6px}
.swap-box{background:var(--panel);border:2px solid var(--ink);border-radius:10px;padding:10px;margin-top:4px}
.swap-box .field input{width:100%}
.swap-box .row{flex-wrap:wrap;gap:6px}
.adm-b{display:flex;gap:12px;align-items:flex-start;border:var(--edge);border-radius:12px;padding:10px;margin:10px 0;background:var(--bg2);flex-wrap:wrap}
.adm-b img{width:72px;height:72px;border:2px solid var(--ink);border-radius:8px;object-fit:cover;flex:none}
.adm-b .s{flex:1;min-width:220px;font-size:13.5px;word-break:break-all}
.adm-b textarea{width:100%;min-height:54px;font:14px var(--body);border:var(--edge);border-radius:8px;padding:8px}
.mine .item.swapping{flex-wrap:wrap;align-items:flex-start}.mine .item.swapping .s{flex:1 1 100%}