aboutsummaryrefslogtreecommitdiff
path: root/src/com/juick/server/MessagesQueries.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2014-08-03 15:36:30 +0700
committerGravatar Ugnich Anton2014-08-03 15:36:30 +0700
commitb5df0e1c2664a8a1a0f9042745dd608773fedce3 (patch)
tree59616c6dac9b8751b6ee8f534ede8da7eabea17b /src/com/juick/server/MessagesQueries.java
parent4ce6b7d6e4b7e9583e90bde93bbdece0bcd88262 (diff)
Message.Hidden
Diffstat (limited to 'src/com/juick/server/MessagesQueries.java')
-rw-r--r--src/com/juick/server/MessagesQueries.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/com/juick/server/MessagesQueries.java b/src/com/juick/server/MessagesQueries.java
index 739bcac1..8bef9018 100644
--- a/src/com/juick/server/MessagesQueries.java
+++ b/src/com/juick/server/MessagesQueries.java
@@ -223,7 +223,7 @@ public class MessagesQueries {
PreparedStatement stmt = null;
ResultSet rs = null;
try {
- stmt = sql.prepareStatement("SELECT messages.user_id,users.nick,TIMESTAMPDIFF(MINUTE,messages.ts,NOW()),DATE_FORMAT(messages.ts,'%Y-%m-%d %H:%i:%s'),messages.readonly,messages.privacy,messages.replies,messages.attach,messages.place_id,messages.lat,messages.lon,messages.likes FROM messages INNER JOIN users ON messages.user_id=users.id WHERE messages.message_id=?");
+ stmt = sql.prepareStatement("SELECT messages.user_id,users.nick,TIMESTAMPDIFF(MINUTE,messages.ts,NOW()),DATE_FORMAT(messages.ts,'%Y-%m-%d %H:%i:%s'),messages.readonly,messages.privacy,messages.replies,messages.attach,messages.place_id,messages.lat,messages.lon,messages.likes,messages.hidden FROM messages INNER JOIN users ON messages.user_id=users.id WHERE messages.message_id=?");
stmt.setInt(1, mid);
rs = stmt.executeQuery();
if (rs.first()) {
@@ -248,6 +248,7 @@ public class MessagesQueries {
msg.Place.lon = rs.getDouble(11);
}
msg.Likes = rs.getInt(12);
+ msg.Hidden = rs.getBoolean(13);
}
} catch (SQLException e) {
System.err.println(e);