Make it easily change remote and/or local media count limits - #2621
Make it easily change remote and/or local media count limits#2621sinoru wants to merge 3 commits into
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 |
11bd515 to
7821634
Compare

This will introduce easily configurable env to change media limits by:
GLITCH_MAX_LOCAL_MEDIA_ATTACHMENTSGLITCH_MAX_REMOTE_MEDIA_ATTACHMENTSThis PR is some part of mastodon#27833.
This will fix #1975.