Skip to content

Commit 90223e0

Browse files
committed
fix(tag) : 태그 정보 100자까지만 보여주기
1 parent b642392 commit 90223e0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/main/java/com/example/FixLog/service/TagService.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ public TagResponseDto viewTags(int page){
3333
List<TagDto> tagList = tags.stream()
3434
.map(tag -> new TagDto(
3535
tag.getTagName(),
36-
tag.getTagInfo()
36+
tag.getTagInfo().length() > 100
37+
? tag.getTagInfo().substring(0, 100) + "..." : tag.getTagInfo()
3738
))
3839
.collect(Collectors.toList());
3940

0 commit comments

Comments
 (0)