From badc1baa85acd3beffa2463cfee104182f12432c Mon Sep 17 00:00:00 2001 From: Sumner Evans Date: Tue, 5 Sep 2023 12:09:44 -0600 Subject: [PATCH] Add shortcode length check verbiage Signed-off-by: Sumner Evans --- proposals/4027-custom-images-in-reactions.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/proposals/4027-custom-images-in-reactions.md b/proposals/4027-custom-images-in-reactions.md index 0957b795..79983085 100644 --- a/proposals/4027-custom-images-in-reactions.md +++ b/proposals/4027-custom-images-in-reactions.md @@ -37,6 +37,13 @@ This proposal suggests two changes to events with the `m.annotation` relation. the annotation, as alt-text, or if the client does not support rendering images. + The `shortcode` must have a length of less than or equal to 100 bytes + (including the colons at the beginning and end of the string). This + restriction must be enforced by servers when sending reactions, but servers + should not reject events coming across federation due to having too many + bytes in the `shortcode` field. Servers may still opt to locally redact + events having too many bytes in the `shortcode` field. + Example custom image reaction event content ```json