Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Configurable limits on avatars #122

Merged
merged 3 commits into from
Jan 28, 2022
Merged

Configurable limits on avatars #122

merged 3 commits into from
Jan 28, 2022

Conversation

babolivier
Copy link
Contributor

Port of matrix-org/synapse#11846
Replaces #19

There's a bunch of noise in this diff, it's because somehow cherry-picking this change raised a conflict with duplicate retention config that was leftover from a previous merge.

Only allow files which file size and content types match configured
limits to be set as avatar.

Most of the inspiration from the non-test code comes from #19
@babolivier babolivier requested a review from a team as a code owner January 28, 2022 15:27
@babolivier
Copy link
Contributor Author

I'm going to go ahead and merge this without a review given the changes have already been reviewed and CI passes.

@babolivier babolivier merged commit e78e455 into dinsic Jan 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant