diff options
Diffstat (limited to 'juick-common')
-rw-r--r-- | juick-common/src/main/java/com/juick/server/CommandsManager.java | 4 | ||||
-rw-r--r-- | juick-common/src/main/java/com/juick/service/TagService.java | 2 |
2 files changed, 3 insertions, 3 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 3ba071e25..9ff0fdbb7 100644 --- a/juick-common/src/main/java/com/juick/server/CommandsManager.java +++ b/juick-common/src/main/java/com/juick/server/CommandsManager.java @@ -100,7 +100,7 @@ public class CommandsManager { return commandResult; } } - List<Tag> tags = tagService.fromString(input, false); + List<Tag> tags = tagService.fromString(input); if (tags.size() > 5) { return CommandResult.fromString("Sorry, 5 tags maximum."); } @@ -480,7 +480,7 @@ public class CommandsManager { int rid = NumberUtils.toInt(args[4], 0); String txt = StringUtils.defaultString(args[5]); Message msg = messagesService.getMessage(mid); - List<Tag> messageTags = tagService.fromString(txt, true); + List<Tag> messageTags = tagService.fromString(txt); if (messageTags.size() > 0) { if (user.getUid() != msg.getUser().getUid()) { return CommandResult.fromString("It is not your message"); diff --git a/juick-common/src/main/java/com/juick/service/TagService.java b/juick-common/src/main/java/com/juick/service/TagService.java index 7cd7768f2..17b6c5dee 100644 --- a/juick-common/src/main/java/com/juick/service/TagService.java +++ b/juick-common/src/main/java/com/juick/service/TagService.java @@ -49,7 +49,7 @@ public interface TagService { List<Tag> updateTags(int mid, Collection<Tag> newTags); - List<Tag> fromString(String txt, boolean tagsOnly); + List<Tag> fromString(String txt); List<TagStats> getMessageTags(int mid); |