aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/TopManager.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/juick/TopManager.java')
-rw-r--r--src/main/java/com/juick/TopManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/TopManager.java b/src/main/java/com/juick/TopManager.java
index faa225d8..d7917fbc 100644
--- a/src/main/java/com/juick/TopManager.java
+++ b/src/main/java/com/juick/TopManager.java
@@ -48,7 +48,7 @@ public class TopManager {
public void updateTop() {
messagesService.getPopularCandidates().forEach(m -> {
Message jmsg = messagesService.getMessage(m).orElseThrow(IllegalStateException::new);
- List<String> tags = jmsg.getTags().stream().map(Tag::getName).map(String::toLowerCase).collect(Collectors.toList());
+ List<String> tags = jmsg.getTags().stream().map(Tag::getName).map(String::toLowerCase).toList();
if (!tags.contains("juick")) {
CommandResult result = commandsManager.commandRecommend(serviceUser, URI.create(StringUtils.EMPTY), String.valueOf(m));
logger.info("Popular message {}: {}", m, result.getText());