We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b642392 commit 90223e0Copy full SHA for 90223e0
1 file changed
src/main/java/com/example/FixLog/service/TagService.java
@@ -33,7 +33,8 @@ public TagResponseDto viewTags(int page){
33
List<TagDto> tagList = tags.stream()
34
.map(tag -> new TagDto(
35
tag.getTagName(),
36
- tag.getTagInfo()
+ tag.getTagInfo().length() > 100
37
+ ? tag.getTagInfo().substring(0, 100) + "..." : tag.getTagInfo()
38
))
39
.collect(Collectors.toList());
40
0 commit comments