aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/static/js/received-bulk-actions.js
diff options
context:
space:
mode:
authorDennis Fink2026-11-17 14:44:00 +0100
committerDennis Fink2026-11-17 14:44:00 +0100
commit227092b57acc886469e16bcc4c0d3256e86d3d1e (patch)
treec1de8d5f8f3a37562e482f84e8017213c08a05d6 /webmentions_ssg/static/js/received-bulk-actions.js
parentf98b0e446b41325c494bd97900b7bbf730a7d67e (diff)
downloadwebmentions-ssg-227092b57acc886469e16bcc4c0d3256e86d3d1e.tar.gz
webmentions-ssg-227092b57acc886469e16bcc4c0d3256e86d3d1e.zip
feat(receiver): add source domain access rules
Add persistent source block and allow lists with authenticated management, single-row and bulk blocking actions, and optional fail-closed allowlist mode. Reject disallowed sources before enqueueing and recheck policy in verification workers, while sharing canonical hostname normalization across receiver, sender, and configuration paths.
Diffstat (limited to '')
-rw-r--r--webmentions_ssg/static/js/received-bulk-actions.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/webmentions_ssg/static/js/received-bulk-actions.js b/webmentions_ssg/static/js/received-bulk-actions.js
index c4ac31b..06ab912 100644
--- a/webmentions_ssg/static/js/received-bulk-actions.js
+++ b/webmentions_ssg/static/js/received-bulk-actions.js
@@ -49,8 +49,11 @@ document.addEventListener("DOMContentLoaded", () => {
const selection = selected();
const message = modal.querySelector("#confirmation-modal-message");
- if (event.relatedTarget.dataset.receivedBulkAction === "delete") {
+ const action = event.relatedTarget.dataset.receivedBulkAction;
+ if (action === "delete") {
message.textContent = `This permanently deletes ${selection.length} selected webmentions and cannot be undone.`;
+ } else if (action === "block-sources") {
+ message.textContent = `Source domains from ${selection.length} selected webmentions (and their subdomains) will be blocked. Existing webmentions will be kept.`;
} else {
message.textContent = `${selection.length} selected webmentions will be fetched and verified again.`;
}