aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com')
-rw-r--r--src/main/java/com/juick/server/MessagesQueries.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/main/java/com/juick/server/MessagesQueries.java b/src/main/java/com/juick/server/MessagesQueries.java
index 8f658b42..91ee1913 100644
--- a/src/main/java/com/juick/server/MessagesQueries.java
+++ b/src/main/java/com/juick/server/MessagesQueries.java
@@ -32,7 +32,6 @@ import java.util.Collections;
import java.util.List;
import java.util.logging.Level;
import java.util.logging.Logger;
-import org.springframework.jdbc.core.RowMapper;
/**
*
@@ -240,8 +239,8 @@ public class MessagesQueries {
+ "messages.lon,messages.likes,messages.hidden,"
+ "txt.tags,txt.repliesby,txt.txt FROM messages "
+ "INNER JOIN users ON messages.user_id=users.id "
- + "INNER JOIN messages_txt "
- + "ON messages.message_id = messages_txt.message_id "
+ + "INNER JOIN messages_txt AS txt "
+ + "ON messages.message_id=txt.message_id "
+ "WHERE messages.message_id=?", new Object[]{mid},
(rs, rowNum) -> {
Message msg = new Message();