aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--juick-common/src/main/java/com/juick/server/CommandsManager.java2
-rw-r--r--juick-server/src/test/java/com/juick/server/tests/ServerTests.java2
2 files changed, 3 insertions, 1 deletions
diff --git a/juick-common/src/main/java/com/juick/server/CommandsManager.java b/juick-common/src/main/java/com/juick/server/CommandsManager.java
index 6b759bed..4b32c456 100644
--- a/juick-common/src/main/java/com/juick/server/CommandsManager.java
+++ b/juick-common/src/main/java/com/juick/server/CommandsManager.java
@@ -101,7 +101,7 @@ public class CommandsManager {
}
}
List<Tag> tags = tagService.fromString(input, false);
- if (tags.size() >= 5) {
+ if (tags.size() > 5) {
return CommandResult.fromString("Sorry, 5 tags maximum.");
}
// new message
diff --git a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
index d6ef4774..be81212b 100644
--- a/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/juick-server/src/test/java/com/juick/server/tests/ServerTests.java
@@ -802,6 +802,8 @@ public class ServerTests {
assertThat(result.getNewMessage().isPresent(), is(true));
assertThat(result.getNewMessage().get().getText(), is("I'm very smart to post my login url there: " +
"https://juick.com/settings"));
+ result = commandsManager.processCommand(user, "*корм *juick_ppl *рационализм *? *мюсли а сколько микроморт в дневной порции сверхмюслей?", emptyUri);
+ assertTrue(result.getNewMessage().isPresent());
}
@Test
public void mailParserTest() throws Exception {