fix: don't send webmentions to this site or WEBMENTION_SKIP_HOSTS (v2.18.3)

Links to the site itself, and to self-hosted apps like Gitea, timed out
from inside the container and sat in the admin Log. They are now skipped
when queueing; already queued or failed ones are dropped at worker start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
PhilandClaude Opus 5.5 committed 2026-11-12 13:40:27 -07:00
1 parent 52ecf0f713
commit b9e5321df2
10 files changed
+223 -5

No files matched your search

+4
View File
@@ -106,6 +106,10 @@ def load_config(app, config_override=None):
# Webmention configuration (v1.6.0)
app.config["WEBMENTION_ENABLED"] = os.getenv("WEBMENTION_ENABLED", "true").lower() == "true"
# Hosts never sent webmentions, besides this site itself (v2.18.3)
app.config["WEBMENTION_SKIP_HOSTS"] = [
h.strip().lower() for h in os.getenv("WEBMENTION_SKIP_HOSTS", "").split(",") if h.strip()
]
# WebSub (v2.10.0, ADR-071): built-in hub unless WEBSUB_HUB_URL names another
app.config["WEBSUB_ENABLED"] = os.getenv("WEBSUB_ENABLED", "true").lower() == "true"