From b5df0e1c2664a8a1a0f9042745dd608773fedce3 Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Sun, 3 Aug 2014 15:36:30 +0700 Subject: Message.Hidden --- src/com/juick/server/MessagesQueries.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/com/juick') 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); -- cgit v1.2.3