Mercurial > prosody-modules
view mod_pubsub_forgejo/webhook-examples/pull_request_comment/headers @ 6519:01d8bfbfc435
mod_pubsub_serverinfo: Fix check for local domain
The module was checking whether a host exists, but this may be misleading if
our host is loaded before the host that is being checked.
This change makes it check the config. This will provide a false positive in
the rare case that the host is defined but not activated/enabled. But we don't
have an API currently for "is this host configured and enabled?"
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 21 Apr 2026 19:54:19 +0100 |
| parents | 131b8bfbefb4 |
| children |
line wrap: on
line source
Content-Type: application/json X-Forgejo-Delivery: 99fb308a-ed68-46d7-a8b5-4bf935ae294f X-Forgejo-Event: issue_comment X-Forgejo-Event-Type: pull_request_comment X-Forgejo-Signature: 5fc374c851a20a0e18b65d32d9901c5f962cce950452cebc81bb5d6b0c023123 X-GitHub-Delivery: 99fb308a-ed68-46d7-a8b5-4bf935ae294f X-GitHub-Event: issue_comment X-GitHub-Event-Type: pull_request_comment X-Gitea-Delivery: 99fb308a-ed68-46d7-a8b5-4bf935ae294f X-Gitea-Event: issue_comment X-Gitea-Event-Type: pull_request_comment X-Gitea-Signature: 5fc374c851a20a0e18b65d32d9901c5f962cce950452cebc81bb5d6b0c023123 X-Gogs-Delivery: 99fb308a-ed68-46d7-a8b5-4bf935ae294f X-Gogs-Event: issue_comment X-Gogs-Event-Type: pull_request_comment X-Gogs-Signature: 5fc374c851a20a0e18b65d32d9901c5f962cce950452cebc81bb5d6b0c023123 X-Hub-Signature: sha1=ea62c579c31ae99001c1e9b769d4a71e4dbc4b7f X-Hub-Signature-256: sha256=5fc374c851a20a0e18b65d32d9901c5f962cce950452cebc81bb5d6b0c023123
