Skip to content

Commit

Permalink
Make thumbnail dimensions mandatory
Browse files Browse the repository at this point in the history
Fixes #1883
  • Loading branch information
richvdh committed Apr 26, 2019
1 parent c230c2f commit 1471546
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/client-server/content-repo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -202,13 +202,15 @@ paths:
type: integer
x-example: 64
name: width
required: true
description: |-
The *desired* width of the thumbnail. The actual thumbnail may not
match the size specified.
- in: query
type: integer
x-example: 64
name: height
required: true
description: |-
The *desired* height of the thumbnail. The actual thumbnail may not
match the size specified.
Expand Down
1 change: 1 addition & 0 deletions changelogs/client_server/newsfragments/1975.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify that ``width`` and ``height`` are required parameters on ``/_matrix/media/r0/thumbnail/{serverName}/{mediaId}``. It is somewhat meaningless to request a thumbnail without specifying a desired size, and Synapse has never permitted such requests.

0 comments on commit 1471546

Please sign in to comment.