From b944a64c6b54b9819542ab2d43d85114ef2908e1 Mon Sep 17 00:00:00 2001 From: Ugnich Anton Date: Sat, 24 Aug 2013 15:07:51 +0700 Subject: PMQueries; UserQueries.getUserByUID; UserQueries.fillUsersByID --- src/com/juick/server/MessagesQueries.java | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/com/juick/server/MessagesQueries.java') diff --git a/src/com/juick/server/MessagesQueries.java b/src/com/juick/server/MessagesQueries.java index 7eaaff2e..444cd13d 100644 --- a/src/com/juick/server/MessagesQueries.java +++ b/src/com/juick/server/MessagesQueries.java @@ -119,6 +119,10 @@ public class MessagesQueries { return ret; } + public static int getMessagePrivacy(Connection sql, int mid) { + return SQLHelpers.getInt(sql, "SELECT privacy FROM messages WHERE message_id=?", mid, -4); + } + public static com.juick.Message getMessage(Connection sql, int mid) { com.juick.Message msg = null; -- cgit v1.2.3