Commit graph

911 commits

Author SHA1 Message Date
Bea
a96d0dd1f2
chore: add global prettier ignore file
As prettier is not configured for this project, and the style doesn't
meet prettier's opinionated defaults, it's worth dropping this blanket
ignore until such a time (if ever) a prettier config is produced that
matches the styleguide of this project.
2026-03-24 19:11:40 +00:00
Bea
088aa32b0e
chore: editorconfig matching existing code format styles
An editor config has been written that matches existing indentation and
formatting used by this project, which should extend the courtesy of
intended tab use to other editors like NeoVim which are often conigured
to adhere to `.editorconfig` by default.

As part of this change, the official EditorConfig extension has been
added to VSCode recommendations, which should additionally enable
Code-like editors to additionally adhere to the rules of other files
like json and markdown which are the only types that deviate from
Cadence's global default.
2026-03-24 19:11:39 +00:00
7367fb3b65 Fix weird background clipping on icons 2026-03-20 01:37:22 +13:00
c75e87f403 Stream files in serveStatic for lower memory use 2026-03-20 01:27:34 +13:00
8b9d8ec0cc Widen newline tag detection 2026-03-20 00:59:52 +13:00
0dac3d2898 Internal language adjusted 2026-03-20 00:53:09 +13:00
9dbd871e0b Defuse mentions in m->d reply if client says so 2026-03-20 00:42:51 +13:00
8c87d93011 Remove member repetition bugfixes 2026-03-20 00:17:40 +13:00
e8d9a5e4ae Script to remove uncached bridged users 2026-03-19 14:30:19 +13:00
876d91fbf4 Remove sims when the Discord user leaves 2026-03-19 14:30:10 +13:00
d2557f73bb Let sims rejoin after being unbanned
The sim_member cache was getting stuck, so OOYE thought it was already
in the room when it actually wasn't.
2026-03-19 13:35:53 +13:00
f8896dce7f Type fixes in set-presence.js 2026-03-19 13:34:19 +13:00
5b04b5d712 Reformat /plu/ral emulated replies 2026-03-19 13:33:50 +13:00
711e024caa Update dependencies 2026-03-17 14:02:11 +13:00
f1b111a8a4 Refuse to operate on encrypted rooms
- Refuse to link to encrypted rooms
- Do not show encrypted rooms as link candidates (if server supports)
- Reject invites to encrypted rooms with message
- Unbridge and leave room if it becomes encrypted
2026-03-17 12:35:42 +13:00
d3afa728ed Fix m->d posting embeds even when setting is off 2026-03-15 20:53:41 +13:00
6716b432ba Wait for response before next click (don't queue) 2026-03-15 01:33:29 +13:00
3365023fe3 Sync default roles changes immediately 2026-03-15 01:21:38 +13:00
e6c3013993 Make default permission setting functional 2026-03-14 20:23:43 +13:00
cb4e8df91e Fix package-lock 2026-03-14 14:34:59 +13:00
f90cdfdbb5 Update dependencies, make stream-type independent 2026-03-14 14:25:48 +13:00
ff022e8793 Combine additional embed images into same event 2026-03-13 11:12:44 +13:00
99f4c52beb Fix attempting to follow an upgrade path twice 2026-03-13 10:17:04 +13:00
5f768fee01 d->m: Don't guess mentions in code blocks 2026-03-12 16:23:22 +13:00
6ca1b836e1 Add more debugging information 2026-03-11 12:38:05 +13:00
Bea
ada3933d9c Backfill: Create new rooms when needed
This updates the backfill script to attempt to create rooms for unbridged rooms, rather than bombing out that the room isn't already bridged.

Co-authored-by: Cadence Ember <cadence@disroot.org>
Reviewed-on: cadence/out-of-your-element#75
Co-authored-by: Bea <beanie@theargo.space>
Co-committed-by: Bea <beanie@theargo.space>
2026-03-09 00:22:41 +00:00
Bea
f5ee130463 Handle expired invites & fix test registration (#73)
This PR addresses a bridge crash discovered while backfilling old channels, alongside a wee QoL fix for the test suite.

* **Expired Events (`d2m`):** Wraps Discord scheduled event/invite link lookups in a try-catch block. If a link is expired (404 or Discord error 10006), the bridge now posts a fallback `m.notice` rather than throwing an error and halting message conversion.
* **Test Suite Setup:** Updates `test.js` to initialize the mock registration object using `getTemplateRegistration()` preventing test runner crashes when running without a local `registration.yaml` file.

Co-authored-by: Cadence Ember <cadence@disroot.org>
Reviewed-on: cadence/out-of-your-element#73
Co-authored-by: Bea <beanie@theargo.space>
Co-committed-by: Bea <beanie@theargo.space>
2026-03-08 22:11:28 +00:00
cd8549da38 Fix sticker tests and coverage 2026-03-08 23:32:36 +13:00
f7a5b2d74c Update tryToCatch dependency and usages 2026-03-08 22:36:05 +13:00
6a2606cbdb Add UI for defining default roles 2026-03-08 22:35:10 +13:00
9eaa85c072 Add /invite Matrix command to get Discord invite 2026-03-08 22:34:51 +13:00
74c0c28cf4 Update dependencies 2026-03-08 22:34:04 +13:00
c68bac5476 Document encryption as unsupported 2026-03-01 22:05:46 +13:00
e275d4c928 Add script to estimate total channel file size 2026-02-27 18:35:48 +13:00
780154fd09 Bots with Administrator may access all channels 2026-02-27 18:34:30 +13:00
ea261e825b Slashes not allowed in MXID 2026-02-27 18:33:29 +13:00
d1aa8f01e7 Change sticker URL and stream response 2026-02-25 18:21:35 +13:00
Abdul
9b3707baa1 Link sticker instead of file upload 2026-02-25 17:47:01 +13:00
411491b405 Remove live dependency on cadence.moe 2026-02-21 12:04:42 +13:00
9f9cfdb534 Allow namespace prefix to be empty string 2026-02-17 14:03:57 +13:00
ee583fddbd Fix server names with numbers in them 2026-02-17 12:56:18 +13:00
0cd7e1c336 Allow for custom additions to webroot 2026-02-17 12:54:50 +13:00
e779b41072 Fix possible undefined property access 2026-02-15 12:34:08 +13:00
09ea942307 Remove deprecated db management 2026-02-14 22:47:38 +13:00
c55e6c6115 v3.4 2026-02-14 20:20:19 +13:00
14de436054 Add docker policy 2026-02-14 20:13:46 +13:00
b5143bfe1f Use same invite logic for display and for linking 2026-02-14 00:33:02 +13:00
08323f4512 More consistency for invite records table
- Autojoined child spaces are recorded as invited
- Update entry when reinvited
- Delete entry when uninvited or removed from room
- Allow linking with spaces you moderate, even if you didn't invite
- Store power levels immediately for new invited rooms
  - Mark members as missing profile in this case
- Only delete from invite table if it left the space
2026-02-13 21:59:17 +13:00
5002f3046a Convert emojihax to real emoji 2026-02-13 20:27:38 +13:00
676cab0dc8 Use smalltext for interaction header 2026-02-13 20:27:25 +13:00