aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main
diff options
context:
space:
mode:
Diffstat (limited to 'juick-server/src/main')
-rw-r--r--juick-server/src/main/java/com/juick/service/TagServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/service/TagServiceImpl.java b/juick-server/src/main/java/com/juick/service/TagServiceImpl.java
index 524ad32d..3ee21aec 100644
--- a/juick-server/src/main/java/com/juick/service/TagServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/TagServiceImpl.java
@@ -214,7 +214,7 @@ public class TagServiceImpl extends BaseJdbcService implements TagService {
return StreamUtils.takeWhile(Arrays.stream(firstLine.split("\\ ")),
t -> !t.equals("*") && t.startsWith("*"))
.map(t -> getTag(t.substring(1), true))
- .collect(Collectors.toList());
+ .distinct().collect(Collectors.toList());
}
@Transactional(readOnly = true)