aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-01-12 15:20:33 +0300
committerGravatar Vitaly Takmazov2017-01-12 15:20:33 +0300
commit14dee26c8785fd23075b6dc884d42d5d3f0176f6 (patch)
tree0f7d112c1e5fc0c652d8d2a7875a7d7e87f8e2ca /juick-server/src/main/java/com
parent0c1ef3ab4f352445df3c1ebf87fe9eac2f78df41 (diff)
juick-server: fix sql message mapper
Diffstat (limited to 'juick-server/src/main/java/com')
-rw-r--r--juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java5
1 files changed, 1 insertions, 4 deletions
diff --git a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
index 736919a4..41f7cefc 100644
--- a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
@@ -70,11 +70,8 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ
}
msg.setLikes(rs.getInt(16));
msg.Hidden = rs.getBoolean(17);
- // parse tags string
String tagsStr = rs.getString(18);
- if (tagsStr != null) {
- Arrays.stream(tagsStr.split(" ")).forEach(t -> msg.getTags().add(new Tag(t)));
- }
+ msg.parseTags(tagsStr);
msg.setRepliesBy(rs.getString(19));
msg.setText(rs.getString(20));
msg.setReplyQuote(MessageUtils.formatQuote(rs.getString(21)));