feat: timeline 基础格式更新

This commit is contained in:
tim
2025-09-18 20:48:46 +08:00
parent 396434a82e
commit 4cc2800f09
6 changed files with 147 additions and 9 deletions

View File

@@ -24,7 +24,7 @@ public class UserMapper {
private final LevelService levelService;
private final MedalService medalService;
@Value("${app.snippet-length:50}")
@Value("${app.snippet-length}")
private int snippetLength;
public AuthorDto toAuthorDto(User user) {

View File

@@ -28,7 +28,7 @@ public class SearchService {
private final CategoryRepository categoryRepository;
private final TagRepository tagRepository;
@org.springframework.beans.factory.annotation.Value("${app.snippet-length:50}")
@org.springframework.beans.factory.annotation.Value("${app.snippet-length}")
private int snippetLength;
public List<User> searchUsers(String keyword) {

View File

@@ -43,7 +43,7 @@ app.avatar.base-url=${AVATAR_BASE_URL:https://api.dicebear.com/6.x}
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}
app.snippet-length=${SNIPPET_LENGTH:200}
# Captcha configuration
app.captcha.enabled=${CAPTCHA_ENABLED:false}