Split character limits between local and remote notes (resolves #723)
What does this PR do?
- Add new
maxRemoteNoteLengthconfig to separately limit the length of notes from remote instances. - Add new
maxCwLengthconfig to separately limit the length of content warnings. - Add new
maxRemoteCwLengthconfig to separately limit the length of content warnings from remote instances. - Add new
maxAltTextLengthconfig to separately limit the length of media descriptions. - Add new
maxRemoteAltTextLengthconfig to separately limit the length of media descriptions from remote instances. - Remove obsolete
MAX_NOTE_TEXT_LENGTH,DB_MAX_NOTE_TEXT_LENGTH, andDB_MAX_IMAGE_COMMENT_LENGTHconstants. - Remove hardcoded OpenAPI limit on CW length.
Contribution Guidelines By submitting this merge request, you agree to follow our Contribution Guidelines
-
I agree to follow this project's Contribution Guidelines -
I have made sure to test this pull request
Edited by Hazelnoot