Commit Graph

106 Commits

Author SHA1 Message Date
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 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 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 e6c3013993 Make default permission setting functional 2026-03-14 20:23:43 +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 1defd83fde Sync create polls permission from Discord 2026-02-12 19:43:29 +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 b463e1173b Fallback text for Matrix poll end events
Right now this doesn't seem to show up on any clients because extensible
events is a total mess, but if you did want to code a client that shows
this fallback without bothering to code real support for polls, you are
easily able to do that. Just pretend the poll end event is a
m.room.message and render it like usual.
2026-02-05 01:00:06 +13:00
Ellie Algase 564d564490 Add command to see Matrix results mid-poll
Co-authored-by: Cadence Ember <cadence@disroot.org>
2026-02-05 00:59:36 +13:00
Ellie Algase 52d9c6fea8 Fix poll results being double-bridged
Oddly, this would only occur for the first poll in a channel.
2026-02-04 13:02:43 +13:00
Cadence Ember f5d50fc14e Properly stop PluralKit users typing after sending 2026-02-04 00:59:23 +13:00
Cadence Ember b16d731ddb Better emoji pack names 2026-02-03 01:02:57 +13:00
Cadence Ember fca4c75522 Fix speedbump+retrigger interactions
Send and then edit over speedbump should now just post the edit.

Hopefully this doesn't have any negative consequences.
2026-01-30 19:21:10 +13:00
Cadence Ember 0c781f9b72 Fixes to vote counting 2026-01-26 20:51:30 +13:00
Cadence Ember f3ae7ba792 Rename poll files a bit better 2026-01-26 02:35:58 +13:00
Ellie Algase 90606d9176 Add full support for polls, both m2d and d2m.
Mostly works, but a few edge-cases still need to be worked out.

Co-authored-by: Cadence Ember <cadence@disroot.org>
2026-01-26 02:30:05 +13:00
Ellie Algase afca4de6b6 Bridge polls from Matrix as pseudo-polls on Discord (with an embed). Not 100% working.
Co-authored-by: Cadence Ember <cloudrac3r@vivaldi.net>
2026-01-26 02:29:59 +13:00
Ellie Algase e565342ac8 initial polls support (not exactly working) 2026-01-25 14:33:09 +13:00
Cadence Ember 2496f4c3b0 Fix retrying own events as non-moderator 2026-01-25 13:50:16 +13:00
Cadence Ember 90fcbd0ddc Update Discord libraries 2026-01-21 14:33:24 +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 c472388acc Room create event must be included to diff 2026-01-15 14:17:03 +13:00
Cadence Ember fba50e9505 Fix getPermissions misunderstanding @everyone 2026-01-14 15:11:22 +13:00
Cadence Ember c8b0f23db3 Retrigger m->d reactions and removals 2026-01-13 22:57:52 +13:00
Cadence Ember 3d3671e05a skip "cannot invite user that is joined" 2026-01-10 13:19:16 +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 04d26026f5 Pre-upload icons before diffing 2025-12-16 12:37:43 +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 c298f78f96 Update global profiles for sims 2025-12-01 16:48:11 +13:00
Cadence Ember 3fc51cef15 Add upgraded_timestamp to historical_channel_room 2025-12-01 16:38:38 +13:00
Cadence Ember 20453aab43 res.json type fixes 2025-12-01 16:03:27 +13:00
Cadence Ember 6d0a98eb49 Fix unbridging procedure 2025-11-28 17:20:44 +13:00
Cadence Ember 42beb6d249 Maybe accept invites more reliably 2025-11-27 21:48:49 +13:00
Cadence Ember a441c476f8 Support multiple versions of rooms 2025-11-26 15:43:48 +13:00
Cadence Ember 0f24994af9 The database works better if you query it. 2025-11-19 16:40:40 +13:00
Cadence Ember edd4f988ec Support persistent Matrix sims for webhooks 2025-11-19 16:37:39 +13:00
Cadence Ember 1338e6ba88 Update discord-markdown 2025-11-15 16:41:02 +13:00
Cadence Ember bc32910cc8 Silence errors if generated embeds can't be sent 2025-11-09 00:24:24 +13:00
Cadence Ember d8e6de62e5 Keep sim_proxy profile data up to date 2025-09-08 16:26:16 +12:00
Cadence Ember 106aea4031 Remove silly stringify 2025-08-13 13:41:50 +12:00