Commit Graph
218 Commits
Author SHA1 Message Date
Cadence Ember 73f410bcad Emoji name in messages may be uncapped 2026-06-21 20:28:44 +12:00
Cadence Ember 34fc21fa15 Fix PluralKit replies being duplicated
There was a race condition on create/update that was skipping the
remedial code due to a bad assumption about the speedbump.
2026-06-16 20:11:39 +12:00
Cadence Ember ab051f301f Fix polls in threads 2026-06-13 20:27:48 +12:00
Cadence Ember 51d57051f6 Fix not giving speedbump info when it's bypassed 2026-06-12 18:08:43 +12:00
Cadence Ember f7609b2040 Only speedbump users that have used PK 2026-06-06 23:38:49 +12:00
Cadence Ember e2ab9fa9bf Improve PK ping message 2026-06-03 00:02:48 +12:00
Ellie AlgaseandCadence Ember 313efb29d8 Fix m->d reaction deletion counting (#85)
Fixes a bug where, if multiple Matrix users had used the same reaction on a message, and then one of those Matrix users removed their reactions, the bot would forcibly remove all of that reactions. Now, we check and make sure there are no remaining reactions from Matrix before removal.

This also rewrote the retrigger system to be more generic and to use promises instead of re-entry (would lose call stack).

Co-authored-by: Cadence Ember <cadence@disroot.org>
Reviewed-on: https://gitdab.com/cadence/out-of-your-element/pulls/85
2026-06-01 04:54:38 +00:00
Cadence Ember 7f7a366cd5 Fix tests for command emoji change 2026-05-22 14:34:59 +12:00
Cadence Ember e0eb7deb2f Change arrow to chevron for commands 2026-05-21 23:19:03 +12:00
Cadence Ember d76936b157 Change emoji for forwards/crossposts 2026-05-21 19:09:02 +12:00
Cadence Ember 7781d1e34d Increase d->m catch-up limit to 100 2026-05-21 18:44:48 +12:00
Cadence Ember 92d6ada71b Merge tag 'v3.5.1'
Remove AI joke
2026-05-10 20:41:21 +12:00
Cadence Ember d8fb4be509 d->m: Fix reply to user join message 2026-04-24 21:23:14 +12:00
Cadence Ember e7cbfb9fc9 Remove AI joke
This reverts commit 201814e9f4.
2026-03-29 15:43:23 +13:00
nemesio65 12f4103870 d2m: Create voice channels as call rooms 2026-03-28 11:46:08 +13:00
Cadence Ember 59012d9613 Fix pinning random messages 2026-03-27 19:13:03 +13:00
Cadence Ember 953b3e7741 Attach message to error
Apparently this was causing detached logs, so just stop those
complaints if the error isn't being bubbled
2026-03-26 00:16:30 +13:00
Cadence Ember 5c9e569a2a Support channel follow messages 2026-03-25 15:29:18 +13:00
Cadence Ember 201814e9f4 Update dependencies 2026-03-23 21:22:33 +13:00
Cadence Ember 0dac3d2898 Internal language adjusted 2026-03-20 00:53:09 +13:00
Cadence Ember 8c87d93011 Remove member repetition bugfixes 2026-03-20 00:17:40 +13:00
Cadence Ember 876d91fbf4 Remove sims when the Discord user leaves 2026-03-19 14:30:10 +13:00
Cadence Ember f8896dce7f Type fixes in set-presence.js 2026-03-19 13:34:19 +13:00
Cadence Ember 5b04b5d712 Reformat /plu/ral emulated replies 2026-03-19 13:33:50 +13:00
Cadence Ember 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
Cadence Ember d3afa728ed Fix m->d posting embeds even when setting is off 2026-03-15 20:53:41 +13:00
Cadence Ember 3365023fe3 Sync default roles changes immediately 2026-03-15 01:21:38 +13:00
Cadence Ember e6c3013993 Make default permission setting functional 2026-03-14 20:23:43 +13:00
Cadence Ember f90cdfdbb5 Update dependencies, make stream-type independent 2026-03-14 14:25:48 +13:00
Cadence Ember ff022e8793 Combine additional embed images into same event 2026-03-13 11:12:44 +13:00
Cadence Ember 5f768fee01 d->m: Don't guess mentions in code blocks 2026-03-12 16:23:22 +13:00
Cadence Ember 6ca1b836e1 Add more debugging information 2026-03-11 12:38:05 +13:00
BeaandCadence Ember 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: https://gitdab.com/cadence/out-of-your-element/pulls/73
Co-authored-by: Bea <beanie@theargo.space>
Co-committed-by: Bea <beanie@theargo.space>
2026-03-08 22:11:28 +00:00
Cadence Ember cd8549da38 Fix sticker tests and coverage 2026-03-08 23:32:36 +13:00
Cadence Ember f7a5b2d74c Update tryToCatch dependency and usages 2026-03-08 22:36:05 +13:00
Cadence Ember ea261e825b Slashes not allowed in MXID 2026-02-27 18:33:29 +13:00
Cadence Ember e779b41072 Fix possible undefined property access 2026-02-15 12:34:08 +13:00
Cadence Ember 5002f3046a Convert emojihax to real emoji 2026-02-13 20:27:38 +13:00
Cadence Ember 676cab0dc8 Use smalltext for interaction header 2026-02-13 20:27:25 +13:00
ElliuandCadence Ember 35e9c9e1ea Add unlink space feature
Squashed commit of the following:

commit bd9fd5cd3cf3f1301df18074c997ec537a81b4f5
Author: Elliu <elliu@hashi.re>
Date:   Sat Nov 15 15:32:18 2025 +0900

    Revert "fix matrix / db resource cleanup on space unlink"

    This reverts commit ccc10564f1e33ab277bc15f360b8c65f2d0ea867.

commit eec559293861305394770343d501389905fe1650
Author: Cadence Ember <cadence@disroot.org>
Date:   Sat Nov 8 13:01:59 2025 +1300

    Dependency inject snow for testing

commit b45eeb150e0702c201b8f710a3bdaa8e9f7d90be
Author: Elliu <elliu@hashi.re>
Date:   Wed Nov 5 00:20:20 2025 +0900

    manually revert 3597a3b: "Factorize some of the space link/unlink sanity checks"

commit 0f2e575df21bf940e4780c30d2701da989f62471
Author: Elliu <elliu@hashi.re>
Date:   Wed Nov 5 00:04:38 2025 +0900

    on unbriding room, also demote powel level of bridge user in matrix room

commit ccc10564f1e33ab277bc15f360b8c65f2d0ea867
Author: Elliu <elliu@hashi.re>
Date:   Wed Nov 5 00:04:13 2025 +0900

    fix matrix / db resource cleanup on space unlink

commit f4c1ea7c7f7d5a265b84ce464cd8e9e26d934a32
Author: Elliu <elliu@hashi.re>
Date:   Tue Nov 4 23:54:41 2025 +0900

    /unlink-space: properly leave guild and clean DB

commit 5f0ec3b2c861cc8b9edc51389d6176c7a22a1135
Author: Cadence Ember <cadence@disroot.org>
Date:   Sun Nov 2 22:31:14 2025 +1300

    Improve HTML to a state I'm happy with

commit 16309f26b3dd72927e05454cee8c63504b447b7f
Author: Elliu <elliu@hashi.re>
Date:   Sat Nov 1 22:24:51 2025 +0900

    add tests from /unlink-space endpoint

commit 5aff6f9048330a86eda3b2d1862f42df8d2bad84
Author: Elliu <elliu@hashi.re>
Date:   Sat Sep 6 20:05:18 2025 +0900

    Add /api/unlink-space implementation

commit dfc61594f68db4b52b3553ac7d3561ae9ce13b49
Author: Elliu <elliu@hashi.re>
Date:   Sat Sep 6 19:59:44 2025 +0900

    Extract /api/unlink code to its own function

commit 3597a3b5ce9dde3a9ddfe0853253bfda91a38335
Author: Elliu <elliu@hashi.re>
Date:   Sat Sep 6 19:28:42 2025 +0900

    Factorize some of the space link/unlink sanity checks

commit 05d788e26394106d9be24cef8b38f6c6f1e4c984
Author: Elliu <elliu@hashi.re>
Date:   Sat Sep 6 18:23:01 2025 +0900

    Add button to unlink a space

Co-authored-by: Cadence Ember <cadence@disroot.org>
2026-02-13 19:13:02 +13:00
Cadence Ember 1defd83fde Sync create polls permission from Discord 2026-02-12 19:43:29 +13:00
Cadence Ember 0d574c1370 Fix PluralKit replies (properly) 2026-02-12 13:46:50 +13:00
Cadence Ember 228766cec0 Change how edit timestamps are treated again 2026-02-12 01:27:49 +13:00
Cadence Ember 7ebe8aa042 Fix backfill script 2026-02-11 12:21:54 +13:00
Cadence Ember 6df931f848 Check if we got rugpulled while sending 2026-02-11 11:49:45 +13:00
Cadence Ember c4909653aa Fix typecheck 2026-02-11 11:31:27 +13:00
Cadence Ember c8b20719db Move poll-star-avatar file endpoint 2026-02-11 02:57:45 +13:00
Cadence Ember dbfa9d0f2b Sync PK member profile on first message
First time a PK member sends a message in the channel, Discord sends a
MESSAGE_UPDATE with the proper avatar data for them. OOYE's speedbump
means sending this message will actually take the edit message path.
The edit message path previously did not force a profile sync. This is
why the Matrix profile did always show up after their second message,
because that message was not updated and took the send path.
2026-02-10 16:42:02 +13:00
Cadence Ember 0ed3ef68f1 Fix PluralKit replies 2026-02-10 16:35:03 +13:00
Cadence Ember 279e379d77 The database really works better if you query it 2026-02-10 16:34:47 +13:00