From c686bb8c026e069b6fcf8bd5200df146c72fc3d2 Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Wed, 29 Dec 2021 14:20:04 -0700 Subject: [PATCH] Add MSC3419 support https://github.com/matrix-org/matrix-doc/pull/3419 --- content/client-server-api/modules/guest_access.md | 10 +++++++++- layouts/shortcodes/changed-in.html | 8 ++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 layouts/shortcodes/changed-in.html diff --git a/content/client-server-api/modules/guest_access.md b/content/client-server-api/modules/guest_access.md index d789424a61..b3ba3c9b73 100644 --- a/content/client-server-api/modules/guest_access.md +++ b/content/client-server-api/modules/guest_access.md @@ -54,7 +54,12 @@ for sending events: - [POST /rooms/:room\_id/join](#post_matrixclientv3roomsroomidjoin) - [POST /rooms/:room\_id/leave](#post_matrixclientv3roomsroomidleave) -- [PUT /rooms/:room\_id/send/m.room.message/:txn\_id](#put_matrixclientv3roomsroomidsendeventtypetxnid) +- [PUT /rooms/:room\_id/send/:event\_type/:txn\_id](#put_matrixclientv3roomsroomidsendeventtypetxnid) + + - {{% changed-in v="1.2" %}} Guests can now send *any* event + type rather than just `m.room.message` events. + +- {{% added-in v="1.2" %}} [PUT /rooms/:room\_id/state/:event\_type/:state\_key](#put_matrixclientv3roomsroomidstateeventtypestatekey) - [PUT /sendToDevice/{eventType}/{txnId}](#put_matrixclientv3sendtodeviceeventtypetxnid) The following API endpoints are allowed to be accessed by guest accounts @@ -90,3 +95,6 @@ properly enforce the permissions outlined in this section. Homeservers may want to enable protections such as captchas for guest registration to prevent spam, denial of service, and similar attacks. + +Homeservers may want to put stricter rate limits on guest accounts, +particularly for sending state events. diff --git a/layouts/shortcodes/changed-in.html b/layouts/shortcodes/changed-in.html new file mode 100644 index 0000000000..0eb35faa54 --- /dev/null +++ b/layouts/shortcodes/changed-in.html @@ -0,0 +1,8 @@ +{{ $ver := .Params.v }} +{{ $this := .Params.this }} + +{{ if $this }} + **[Changed in this version]** +{{ else }} + **[Changed in `v{{ $ver }}`]** +{{ end }} {{/* Do not leave an empty line at the end of this file otherwise the inline behaviour breaks. */}} \ No newline at end of file