From da394da4b607eee2f5933fa01bfafbf7068835d1 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Thu, 30 Aug 2018 00:30:23 +0100 Subject: [PATCH] synapse uses a different format of media IDs for URL previews --- proposals/1597-id-grammar.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proposals/1597-id-grammar.md b/proposals/1597-id-grammar.md index 85a0ba569..0a42192b1 100644 --- a/proposals/1597-id-grammar.md +++ b/proposals/1597-id-grammar.md @@ -189,7 +189,8 @@ and used in the C-S API and the S-S API. They must be URI-safe to be sensibly embedded in `mxc://` URIs. [Synapse](https://github.com/matrix-org/synapse/blob/74854a97191191b08101821753c2672efc2a65fd/synapse/rest/media/v1/media_repository.py#L153) -uses `[A-Za-z]{24}`. +uses `[A-Za-z]{24}`, though it also uses `[0-9A-Za-z_-]{27}` for +[URL previews](https://github.com/matrix-org/synapse/blob/74854a97191191b08101821753c2672efc2a65fd/synapse/rest/media/v1/preview_url_resource.py#L285). ### Filter IDs