Commit Graph

195 Commits

Author SHA1 Message Date
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 876d91fbf4 Remove sims when the Discord user leaves 2026-03-19 14:30:10 +13:00
Cadence Ember ff022e8793 Combine additional embed images into same event 2026-03-13 11:12:44 +13: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: 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 5002f3046a Convert emojihax to real emoji 2026-02-13 20:27:38 +13:00
Elliu 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 228766cec0 Change how edit timestamps are treated again 2026-02-12 01:27:49 +13:00
Cadence Ember d1b0fa48cf Add tests for emoji sheet; style and nits 2026-02-11 02:42:10 +13:00
Cadence Ember 64369f1054 Fix test 2026-02-09 13:22:45 +13:00
Cadence Ember b52b2de205 Customise format for Klipy GIFs 2026-02-04 00:45:23 +13:00
Cadence Ember 15aa6ed502 Highlight scanned mentions on Matrix side 2026-02-03 22:41:03 +13:00
Cadence Ember f287806bcd Remove smalltext from non-bots
I don't like it.
2026-02-03 01:23:12 +13:00
Cadence Ember e3e38b9f24 Components v2 support 2026-01-30 19:22:13 +13:00
Ellie Algase e565342ac8 initial polls support (not exactly working) 2026-01-25 14:33:09 +13:00
Cadence Ember 90fcbd0ddc Update Discord libraries 2026-01-21 14:33:24 +13:00
Cadence Ember 345b7d6135 Merge attachments with message when possible 2026-01-21 13:51:34 +13:00
Cadence Ember 756e8e27ad Make registration more consistent 2026-01-21 01:59:54 +13:00
abdul 1741bc0fa7 Fix webp animated emojis
https://discord.com/developers/docs/reference#image-formatting-cdn-endpoints
> WebP and AVIF formats must be requested as WebP.
2026-01-17 23:06:19 +13:00
Cadence Ember 505c41a35e More code coverage 2026-01-10 02:28:18 +13:00
Cadence Ember 045fdfdf27 General code coverage 2026-01-09 03:49:32 +13:00
Cadence Ember 4bea696a5a setUserPower should account for room version 12 2026-01-07 15:38:09 +13:00
Cadence Ember 55e0e5dfa1 Room version 12 and room upgrades 2026-01-07 02:43:20 +13:00
Cadence Ember e4d0838af5 Support creating v12 rooms 2025-12-16 02:15:17 +13:00
Cadence Ember 239568a8e5 Fully remove failed experiment 2025-12-16 00:34:37 +13:00
Cadence Ember 653e38a9d2 Interpret Matrix media spoilers 2025-12-06 03:10:51 +13:00
Cadence Ember 261bb1b8c8 Future-proof permissions 2025-12-05 17:13:56 +13:00
Cadence Ember 3fc51cef15 Add upgraded_timestamp to historical_channel_room 2025-12-01 16:38:38 +13:00
Cadence Ember a441c476f8 Support multiple versions of rooms 2025-11-26 15:43:48 +13:00
Cadence Ember d0f7d79d78 Fix duplicated data appearing on Matrix 2025-11-18 14:48:59 +13:00
Cadence Ember cba79658fa Don't post new embeds for old messages 2025-11-10 00:45:56 +13:00
Elliu d95a114377 Fix matrix api joinRoom() for remote rooms (#60)
When using self-service mode and trying to link with a remote matrix
room (room not in the same HS as the bridge user), then we need to add
the "via" HSs to join the room with, or else it fails.

We get it from the "m.space.child" in the "children_state" of the space
hierarchy.

Co-authored-by: Cadence Ember <cadence@disroot.org>
Reviewed-on: https://gitdab.com/cadence/out-of-your-element/pulls/60
Co-authored-by: Elliu <elliu@hashi.re>
Co-committed-by: Elliu <elliu@hashi.re>
2025-11-02 07:50:16 +00:00
Cadence Ember cffd3c9f2e Fix converting discord channel links 2025-10-10 12:26:01 -06:00
Cadence Ember 5b7433de32 Make tests time zone independent 2025-10-07 14:09:50 -05:00
Cadence Ember 954d41269c Store directs in database rather than account data 2025-08-21 11:30:23 +12:00
Cadence Ember 160efc5592 Update dependencies 2025-08-13 20:30:19 +12:00
Cadence Ember e306b95764 Add test case for something that was irking me 2025-08-04 23:27:56 +12:00
Cadence Ember 2614493646 Look harder for username data 2025-08-04 18:10:08 +12:00
Cadence Ember 9a33ba3ed2 Fix evil encrypted file event with null url 2025-07-21 12:46:51 +12:00
Cadence Ember 10a3185823 Give sims enough power to send to read-only rooms 2025-06-22 22:35:33 +12:00
Cadence Ember edf60bcd2d Remove provider line from Tenor gifs 2025-06-15 21:18:33 +12:00
Cadence Ember 557b7653e2 Test coverage for message info API 2025-06-08 22:29:10 +12:00
Cadence Ember ab396bd581 Generate embeds for invites with events 2025-06-08 21:52:28 +12:00
Cadence Ember bb711c26ac API endpoint for message info 2025-05-12 14:30:49 +12:00
Cadence Ember 7a59f48c0a New emoji storage and bug fixes in setup 2025-05-12 14:29:34 +12:00
Cadence Ember b0ffb45e55 Allow un-reacting in read-only rooms 2025-04-16 22:42:09 +12:00
Cadence Ember dd63ac7d44 New error trace stringifier 2025-03-12 16:01:36 +13:00
Cadence Ember a8670323a0 m->d: fix image captions spec, fix upload issues 2025-02-28 00:39:03 +13:00
Cadence Ember 6df8d9a079 Display limited replies to unbridged messages 2025-02-24 01:41:32 +13:00