-
Notifications
You must be signed in to change notification settings - Fork 182
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
Make it easily change remote and/or local media count limits #2621
base: main
Are you sure you want to change the base?
Conversation
Why make another file and not use the .env? |
@mkody I approached it for better code management. Those value can be accessed by If this is too much, or If a lot of people disagree, I can change it to accept the opinion. |
If anything, I don't think this should be done partially and being slipped in with another change... and if not done partially, you need to consider it being either backwards compatible or make it a breaking change with plenty of warnings to instance owners. Skipping my opinion, this PR is missing a way to handle missing keys, like default values as a fallback. You need to consider that deployments may not see file changes and do merges, like Docker-based deployments, if they have to mount the file to change this (which is... terrible, ENV variables would be better here - or this should be set in the admin UI). I would also argue that for glitch-only features, they should be in a |
Actually, If I supplies env, than it doesn't introduce backwards breakable changes.
I agrees with that. I need to adds some env. But even that, It will be great for easily accessible constant will be great for development.
Right. I missed this point. I agreed. |
This pull request has merge conflicts that must be resolved before it can be merged. |
It looks like a good chunk of this was superseded in mastodon#30433, however that PR still uses a hardcoded value and didn't add any config options. |
This missing feature is the reason why i abandoned my vanilla Mastodon instance and migrated to Sharkey |
This will introduce easily configurable env to change media limits by:
GLITCH_MAX_LOCAL_MEDIA_ATTACHMENTS
GLITCH_MAX_REMOTE_MEDIA_ATTACHMENTS
This PR is some part of mastodon#27833.
This will fix #1975.