diff options
author | Vitaly Takmazov | 2017-01-23 11:07:16 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-01-23 11:07:16 +0300 |
commit | 7b3761fc68828d1c10ce74326a500ed8982e44ee (patch) | |
tree | ebc1fc08e9fe194c4a86f9ffaa1d6d5bf44a8e4f /juick-server/src | |
parent | 3c9a0aff3ec7d14c3002c179c0180c0830c5f3bd (diff) |
juick-server: getMessage should return message author banned status. Added test
Diffstat (limited to 'juick-server/src')
-rw-r--r-- | juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java | 2 |
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," |