aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-05 17:07:10 +0300
committerGravatar Vitaly Takmazov2018-10-05 17:07:10 +0300
commit8706a64c522ecfcd54577b4aac575a5ca4dba124 (patch)
tree07e4946c68c550da03b8b00e8fee7e502e7e55a9 /juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
parent279b60a55a9f9929d75f41fc0e546c6ceed16eb6 (diff)
getReply fix and VSCode script indent
Diffstat (limited to 'juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java')
-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 f59b40dd..b357ff92 100644
--- a/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
+++ b/juick-server/src/main/java/com/juick/service/MessagesServiceImpl.java
@@ -363,7 +363,7 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ
+ "replies.attach, replies.txt, IFNULL(q.txt,t.txt) as quote, "
+ "COALESCE(q.user_id, m.user_id) AS to_uid, COALESCE(qu.nick, mu.nick) AS to_name, "
+ "replies.updated_at, replies.user_uri as uri "
- + "FROM replies INNER JOIN users ON replies.user_id = users.id "
+ + "FROM replies LEFT JOIN users ON replies.user_id = users.id "
+ "LEFT JOIN replies q ON replies.message_id = q.message_id and replies.replyto = q.reply_id "
+ "LEFT JOIN messages_txt t ON replies.message_id = t.message_id "
+ "LEFT JOIN messages m ON replies.message_id = m.message_id "