Skip to content

Commit dd95068

Browse files
authored
[FEAT] 태그 모음 보기 구현
2 parents 2e1a4d9 + 90223e0 commit dd95068

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
@@ -29,7 +29,8 @@ public TagResponseDto viewTags(int page, int size){
2929
List<TagDto> tagList = tags.stream()
3030
.map(tag -> new TagDto(
3131
tag.getTagName(),
32-
tag.getTagInfo()
32+
tag.getTagInfo().length() > 100
33+
? tag.getTagInfo().substring(0, 100) + "..." : tag.getTagInfo()
3334
))
3435
.collect(Collectors.toList());
3536

0 commit comments

Comments
 (0)