Source domain rules
+ Moderation
Entries match the named hostname and all of its subdomains (not similarly named domains).
Blocked domains always take precedence over allowed domains. Changes affect new
@@ -25,7 +25,7 @@ SPDX-License-Identifier: BSD-3-Clause
class="row g-2 align-items-end mb-3">
-
+
ResponseReturnValue:
"""Manage blocklist and allowlist entries used by the receiver."""
return render_template(
"moderation.html",
- title="Source domain rules",
+ title="Moderation",
blocked=db.session.scalars(
sa.select(BlockedDomain).order_by(BlockedDomain.domain)
).all(),
@@ -83,7 +83,7 @@ def moderation_domain_add(kind: str) -> ResponseReturnValue:
except IntegrityError:
db.session.rollback()
- flash(f"Source domain {domain} added to {kind} list.", "success")
+ flash(f"Domain {domain} added to {kind} list.", "success")
return redirect(url_for("webmentions.moderation"))
@@ -101,5 +101,5 @@ def moderation_domain_delete(kind: str, entry_id: int) -> ResponseReturnValue:
domain = entry.domain
db.session.delete(entry)
db.session.commit()
- flash(f"Source domain {domain} removed from {kind} list.", "success")
+ flash(f"Domain {domain} removed from {kind} list.", "success")
return redirect(url_for("webmentions.moderation"))
diff --git a/webmentions_ssg/views/received.py b/webmentions_ssg/views/received.py
index ef63893..e49ee31 100644
--- a/webmentions_ssg/views/received.py
+++ b/webmentions_ssg/views/received.py
@@ -444,5 +444,5 @@ def block_received_source(webmention_uuid: uuid.UUID) -> ResponseReturnValue:
block_domains({domain})
- flash(f"Source domain {domain} blocked.", "success")
+ flash(f"Domain {domain} blocked.", "success")
return received_action_redirect(webmention_uuid, filters)
--
cgit v1.3.1