umputun / remark42

comment engine
https://remark42.com
MIT License
4.81k stars 374 forks source link

Add option for `MIN_COMMENT_SIZE` just like `MAX_COMMENT_SIZE` #1686

Closed devadattas closed 8 months ago

devadattas commented 10 months ago

Description:

In order to enhance the quality of comments and prevent unintentional or mistakenly added comments, it would be beneficial to introduce a MIN_COMMENT_SIZE configuration option. This feature would complement the existing MAX_COMMENT_SIZE setting, ensuring that comments meet a minimum character count before being accepted.

Motivation:

Proposed Implementation:

  1. Add a new configuration option named MIN_COMMENT_SIZE in the appropriate configuration files.
  2. Ensure that the comment submission process checks against this minimum size, and if the comment doesn't meet the requirement, an appropriate error message should be displayed to the user.
  3. Update the documentation to include details about this new configuration option, explaining its purpose and providing guidance on how to set it up.

Potential Challenges:

Additional Notes:

It would be great to have community feedback on this proposed feature, especially regarding what might be a reasonable default value for MIN_COMMENT_SIZE if implemented.