From 933e5702864d0babcd9f8cbc1791078f387b24c7 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 25 Sep 2018 09:28:30 +0300 Subject: distinct tags in new message --- juick-server/src/main/java/com/juick/service/TagServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'juick-server/src/main/java/com/juick') 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) -- cgit v1.2.3