sweeper: release custom URLs on expiry and after 30-day reservation (#29)
CI / test (push) Successful in 17s
CI / docker (push) Skipped

This commit is contained in:
2026-09-08 20:50:40 -05:00
parent 0bbe65ce05
commit 1f162c4003
10 changed files with 233 additions and 17 deletions
+9
View File
@@ -33,8 +33,17 @@
</div>
<input type="hidden" id="raw-content" value="{{.ContentAttr}}">
<script>
function toast(msg) {
let t = document.querySelector('.toast');
if (!t) { t = document.createElement('div'); t.className = 'toast'; document.body.appendChild(t); }
t.textContent = msg;
t.classList.add('show');
clearTimeout(t._h);
t._h = setTimeout(() => t.classList.remove('show'), 2000);
}
function copyContent() {
navigator.clipboard.writeText(document.getElementById('raw-content').value);
toast('Copied');
}
function redeem(token) {
if (!confirm('Hard delete this paste immediately?')) return;