Add configurable snippet support and extend user comment info

This commit is contained in:
Tim
2025-07-09 14:42:51 +08:00
parent 4ac20d5f78
commit c4bf5be049
3 changed files with 46 additions and 5 deletions

View File

@@ -20,6 +20,8 @@ app.upload.max-size=${UPLOAD_MAX_SIZE:5242880}
# Default list size for user posts and replies
app.user.posts-limit=${USER_POSTS_LIMIT:10}
app.user.replies-limit=${USER_REPLIES_LIMIT:50}
# Length of extracted snippets for posts and search (-1 to disable truncation)
app.snippet-length=${SNIPPET_LENGTH:50}
# Captcha configuration
app.captcha.enabled=${CAPTCHA_ENABLED:false}