aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main/java/com/juick/service/MessagesServiceImpl.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/MessagesServiceImpl.java b/src/main/java/com/juick/service/MessagesServiceImpl.java
index b1cb03d9..a1ba26ac 100644
--- a/src/main/java/com/juick/service/MessagesServiceImpl.java
+++ b/src/main/java/com/juick/service/MessagesServiceImpl.java
@@ -803,7 +803,7 @@ public class MessagesServiceImpl extends BaseJdbcService implements MessagesServ
"SELECT message_id FROM " +
"(SELECT message_id FROM favorites " +
" INNER JOIN users" +
- " ON messages.user_id = users.id" +
+ " ON favorites.user_id = users.id" +
" WHERE user_id = :uid AND users.banned = 0" +
(before > 0 ?
" AND message_id < :before " : StringUtils.EMPTY) +