Commit Graph

113 Commits

Author SHA1 Message Date
Cadence Ember
0cd7e1c336 Allow for custom additions to webroot 2026-02-17 12:54:50 +13:00
Cadence Ember
b5143bfe1f Use same invite logic for display and for linking 2026-02-14 00:33:02 +13:00
Cadence Ember
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
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
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
d1b0fa48cf Add tests for emoji sheet; style and nits 2026-02-11 02:42:10 +13:00
abdul
c0d82754b0 Link instead of upload emoji sprite sheets 2026-02-11 02:42:05 +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
Cadence Ember
c0bbdfde60 add to historical_channel_room when linking 2026-01-24 00:31:50 +13:00
Cadence Ember
014a87ed9e Force Matrix m.notices to be unchanged events 2026-01-18 02:53:39 +13:00
Cadence Ember
fba50e9505 Fix getPermissions misunderstanding @everyone 2026-01-14 15:11:22 +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
8e0fe29bec Web accessibility 2026-01-08 20:10:21 +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
4bc7e794ab Refactor private chat creation 2025-12-16 00:36:11 +13:00
Cadence Ember
261bb1b8c8 Future-proof permissions 2025-12-05 17:13:56 +13:00
Cadence Ember
a441c476f8 Support multiple versions of rooms 2025-11-26 15:43:48 +13:00
Cadence Ember
edd4f988ec Support persistent Matrix sims for webhooks 2025-11-19 16:37:39 +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
954d41269c Store directs in database rather than account data 2025-08-21 11:30:23 +12:00
Cadence Ember
5e4bea6ce6 Remove useless loop 2025-08-21 00:47:50 +12:00
Cadence Ember
344822cec0 Minor copyedit 2025-08-17 18:25:34 +12:00
Cadence Ember
a7abdfdc25 Persist cookies longer than session 2025-08-17 18:24:27 +12:00
Cadence Ember
160efc5592 Update dependencies 2025-08-13 20:30:19 +12:00
Cadence Ember
7bfe140d08 More precise power level checking 2025-08-05 01:40:56 +12:00
Cadence Ember
50a047249b Check hierarchy instead of m.space.child 2025-06-22 18:38:20 +12:00
Cadence Ember
45de3f8be4 Info API: Use HTTPS for avatar URLs 2025-06-08 22:52:07 +12:00
Cadence Ember
557b7653e2 Test coverage for message info API 2025-06-08 22:29:10 +12:00
Cadence Ember
bb711c26ac API endpoint for message info 2025-05-12 14:30:49 +12:00
Cadence Ember
adbd2bbf60 Update Stacks, restore buttons to featured style 2025-03-10 12:07:11 +13:00
Cadence Ember
c29fbc8e19 Fix QR code on relative paths 2025-03-10 11:48:51 +13:00
Cadence Ember
bcc3bfc288 Recognise matrix-media-repo URL preview agent 2025-03-08 14:33:00 +13:00
Cadence Ember
d5a7b3256b Fix web forms when bound to a relative path 2025-03-07 09:13:04 +13:00
Cadence Ember
a8670323a0 m->d: fix image captions spec, fix upload issues 2025-02-28 00:39:03 +13:00
Cadence Ember
8e0950ded9 Fix client-side MXID validation 2025-02-25 15:43:46 +13:00
Cadence Ember
2a45b5f9aa Replace hash icon 2025-02-25 15:43:39 +13:00
Cadence Ember
3b034dd6e5 Optional password protection for the web server 2025-02-25 14:36:49 +13:00
Cadence Ember
d5cbb8ff8a Rearrange controls on guild web page 2025-02-24 15:32:43 +13:00
Cadence Ember
e2df174bbe Fix #42
Don't force private badge when the base role can't view channels.
2025-02-24 02:25:21 +13:00
Cadence Ember
20dabf4ad5 Only offer to link channels the bridge can access 2025-02-24 02:14:46 +13:00
Cadence Ember
5631b7e956 Remove unused API calls 2025-02-24 01:43:03 +13:00
Cadence Ember
fb38db5d23 Revert to Stacks 2.5.4
2.5.5 has a regression where the a.s-btn:visited style looks bad.
I can update again when they fix it.
https://github.com/StackExchange/Stacks/pull/1879
2025-02-22 12:35:04 +13:00
Cadence Ember
62be5f7091 Code coverage for web settings 2025-02-21 16:41:43 +13:00
Cadence Ember
21c7b35136 Put QR code behind reveal button 2025-02-21 16:38:00 +13:00
Cadence Ember
46bd2cbb2b Fix web invite button duplicating the page 2025-02-21 12:12:49 +13:00
Cadence Ember
bb73341a89 code quality: get htmx from npm 2025-02-21 12:12:35 +13:00
Cadence Ember
902dfa7e7c Validate mxid format in web login 2025-02-18 15:59:32 +13:00