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

Matrix: Permit uploading files of other mimetypes #1237

Merged
merged 1 commit into from
Sep 26, 2020

Conversation

BenWiederhake
Copy link
Contributor

This includes at least c-source-files, cpp-source-files, markdown-files, Rust-files, and plaintext files.

We already allow uploading arbitrary executables. (And javascript-files, coincidentally.) Not permitting these other text files would be highly unexpected.

The "weird" lower part of the diff just moves the "executable" handler to the bottom, and marks it as default.

This includes at least c-source-files, cpp-source-files,
markdown-files, Rust-files, and plaintext files.
We already allow uploading arbitrary executables. (And javascript-files,
coincidentally.) Not permitting these other text files would be highly unexpected.
bridge/matrix/matrix.go Show resolved Hide resolved
bridge/matrix/matrix.go Show resolved Hide resolved
@codeclimate
Copy link

codeclimate bot commented Sep 9, 2020

Code Climate has analyzed commit 0c99bc2 and detected 2 issues on this pull request.

Here's the issue category breakdown:

Category Count
Duplication 2

View more on Code Climate.

@BenWiederhake
Copy link
Contributor Author

Codeclimate criticizes code that I only moved. In fact, I would argue there is less duplication than before, because the executable case got more general.

Therefore, I'm not yet convinced to change the PR. (If you insist that I change the PR, please tell me how you would like me to avoid the duplication that was already there.)

@BenWiederhake
Copy link
Contributor Author

@42wim What do you think of this PR? :)

@42wim
Copy link
Owner

42wim commented Sep 26, 2020

LGTM, thank you! sorry for the delay

@42wim 42wim merged commit 06eb89b into 42wim:master Sep 26, 2020
@42wim 42wim added this to the 1.19.0 milestone Sep 26, 2020
@BenWiederhake BenWiederhake deleted the dev-matrix-upload branch March 11, 2021 18:40
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.

2 participants