fix: handle expired scheduled event links & fix test suite setup #73

Merged
cadence merged 3 commits from beanie/out-of-your-element:bugfix/handle-expired-events into main 2026-03-08 22:11:29 +00:00

3 commits

Author SHA1 Message Date
3e7ae8474c Revise 2026-03-09 11:09:43 +13:00
Bea
6553946b88
test: fix null registration object and validation errors during setup
Running the test suite without a local `registration.yaml` previously
caused a TypeError because the `reg` export defaulted to null. This
injects a base template using `getTemplateRegistration` before applying
test-specific overrides.
2026-03-02 02:39:23 +00:00
Bea
ebc4dc1814
fix(d2m): handle expired Discord event and invite links
Wrap the scheduled event lookup in a try-catch block to prevent the
bridge from crashing when it encounters expired or invalid links.
When a 404 or Discord error code 10006 is caught, the bot now
generates a fallback "m.notice" event to inform Matrix users that
the event link has expired.
2026-03-02 02:39:23 +00:00