aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-01-23 11:07:16 +0300
committerGravatar Vitaly Takmazov2017-01-23 11:07:16 +0300
commit7b3761fc68828d1c10ce74326a500ed8982e44ee (patch)
treeebc1fc08e9fe194c4a86f9ffaa1d6d5bf44a8e4f /juick-server/src/main/java/com/juick
parent3c9a0aff3ec7d14c3002c179c0180c0830c5f3bd (diff)
juick-server: getMessage should return message author banned status. Added test
Diffstat (limited to 'juick-server/src/main/java/com/juick')
-rw-r--r--juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
index 41f7cefc..5c2701eb 100644
--- a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
@@ -270,7 +270,7 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ
public com.juick.Message getMessage(final int mid) {
List<com.juick.Message> list = getJdbcTemplate().query(
"SELECT messages.message_id, 0 as rid, 0 as replyto, "
- + "messages.user_id, users.nick, 0 as banned, "
+ + "messages.user_id, users.nick, users.banned as banned, "
+ "TIMESTAMPDIFF(MINUTE, messages.ts, NOW()),"
+ "messages.ts,"
+ "messages.readonly, messages.privacy, messages.replies,"