aboutsummaryrefslogtreecommitdiff
path: root/src/com/juick/server/MessagesQueries.java
diff options
context:
space:
mode:
authorGravatar Ugnich Anton2013-08-24 15:07:51 +0700
committerGravatar Ugnich Anton2013-08-24 15:07:51 +0700
commitb944a64c6b54b9819542ab2d43d85114ef2908e1 (patch)
tree80046b9d526d34b54028aad54d1b6692528faffb /src/com/juick/server/MessagesQueries.java
parent9b8dbec964ec345f1015eb49a7dedf7803c93164 (diff)
PMQueries; UserQueries.getUserByUID; UserQueries.fillUsersByID
Diffstat (limited to 'src/com/juick/server/MessagesQueries.java')
-rw-r--r--src/com/juick/server/MessagesQueries.java4
1 files changed, 4 insertions, 0 deletions
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;