Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove hardcoding JPEG as filetype in thumbnail URIs #123

Merged
merged 2 commits into from
Jun 17, 2019

Conversation

Berulacks
Copy link
Contributor

@Berulacks Berulacks commented Mar 14, 2019

It seems that Slack now does pass on non-JPEGs as thumbnails. I wasn't able to send any file other than jpegs, previously. This quick change removes the hard-coded ".jpeg" extensions from outgoing messages in favor of their reported file-type.

lib/BridgedRoom.js Outdated Show resolved Hide resolved
…chment mimetypes

Co-Authored-By: Max Sandholm <max@sandholm.org>
Copy link
Contributor

@Half-Shot Half-Shot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Can you sign off as per https://github.com/matrix-org/synapse/blob/master/CONTRIBUTING.rst (we need to link it in this project, but it applies to all matrix-org projects)

@Berulacks
Copy link
Contributor Author

Signed-off-by: Derin Yarsuvat derin@ml1.net

@Half-Shot Half-Shot merged commit d914383 into matrix-org:develop Jun 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants