aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/MessagesQueries.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2016-12-01 23:14:16 +0300
committerGravatar Vitaly Takmazov2016-12-01 23:23:10 +0300
commita797587800b68821a810fa3d833352dc272d42f7 (patch)
tree75bdd94be017b7c5adcf4551f717a7a872e81816 /juick-server/src/main/java/com/juick/server/MessagesQueries.java
parent8b29dc19a288cf50246af0a3834d45e07da51642 (diff)
juick-server: fix serialization, vNext
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/MessagesQueries.java')
-rw-r--r--juick-server/src/main/java/com/juick/server/MessagesQueries.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/juick-server/src/main/java/com/juick/server/MessagesQueries.java b/juick-server/src/main/java/com/juick/server/MessagesQueries.java
index b028ec34..cac36979 100644
--- a/juick-server/src/main/java/com/juick/server/MessagesQueries.java
+++ b/juick-server/src/main/java/com/juick/server/MessagesQueries.java
@@ -68,14 +68,14 @@ public class MessagesQueries {
msg.Place.lat = rs.getDouble(14);
msg.Place.lon = rs.getDouble(15);
}
- msg.Likes = rs.getInt(16);
+ 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.RepliesBy = rs.getString(19);
+ msg.setRepliesBy(rs.getString(19));
msg.setText(rs.getString(20));
msg.setReplyQuote(MessageUtils.formatQuote(rs.getString(21)));
return msg;