-
Notifications
You must be signed in to change notification settings - Fork 407
Add get_media_upload_limits_for_user and on_media_upload_limit_exceeded callbacks to module API #18848
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
Merged
anoadragon453
merged 22 commits into
develop
from
hughns/media-upload-limits-module-api
Sep 12, 2025
Merged
Add get_media_upload_limits_for_user and on_media_upload_limit_exceeded callbacks to module API #18848
Changes from 15 commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
ba9530b
Add `get_media_upload_limits_for_user` callback to module API
hughns 8e9c508
Add `on_media_upload_limit_exceeded` callback
hughns 1eed777
Changelog and version update
hughns 499dff3
Lint
hughns 3ca9e05
Types
hughns 48c79ca
Bump expected version to 1.139.0
hughns 1cb04a0
Apply suggestions from code review
hughns 9205e57
Update tests/rest/client/test_media.py
hughns 2636172
Update synapse/media/media_repository.py
hughns 0187a0b
Handle returned upload limits being out of order
hughns a751ef1
Improve documentation
hughns 4f163e8
Fix links
hughns 2605584
Links again
hughns 6b1e618
Wording
hughns f7cc3b2
Try without a hash
hughns 5e821e1
Apply suggestions from code review
hughns 71824fc
Changes from review
hughns 2aad550
Revert "Try without a hash"
hughns ddf9e7e
Sync docs
hughns df692ec
Try adding explicit link in module docs
hughns 0441565
Revert "Try adding explicit link in module docs"
hughns 0b954d1
Whitespace
hughns File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Add `get_media_upload_limits_for_user` and `on_media_upload_limit_exceeded` module API callbacks for media repository. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.