aboutsummaryrefslogtreecommitdiff
path: root/juick-api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2017-09-11 21:00:02 +0300
committerGravatar Vitaly Takmazov2017-09-11 21:01:55 +0300
commit49c4b7f3ccbd4e22f500ea2f46e520786d8a8ab1 (patch)
tree2443c30e860c8df691db8358547462377da94b2f /juick-api
parente49843282fec85ac29a4b83ab384ab7bc1c6ae1f (diff)
no more recommended tab
Diffstat (limited to 'juick-api')
-rw-r--r--juick-api/src/main/java/com/juick/api/controllers/Messages.java2
-rw-r--r--juick-api/src/test/java/com/juick/api/tests/MessagesTests.java6
2 files changed, 4 insertions, 4 deletions
diff --git a/juick-api/src/main/java/com/juick/api/controllers/Messages.java b/juick-api/src/main/java/com/juick/api/controllers/Messages.java
index 3f3c9959..bc324996 100644
--- a/juick-api/src/main/java/com/juick/api/controllers/Messages.java
+++ b/juick-api/src/main/java/com/juick/api/controllers/Messages.java
@@ -67,7 +67,7 @@ public class Messages {
User visitor = UserUtils.getCurrentUser();
if (!visitor.isAnonymous()) {
int vuid = visitor.getUid();
- List<Integer> mids = messagesService.getMyFeed(vuid, before_mid);
+ List<Integer> mids = messagesService.getMyFeed(vuid, before_mid, true);
if (!mids.isEmpty())
return ResponseEntity.ok(messagesService.getMessages(mids));
diff --git a/juick-api/src/test/java/com/juick/api/tests/MessagesTests.java b/juick-api/src/test/java/com/juick/api/tests/MessagesTests.java
index be21c3fc..e8045cc2 100644
--- a/juick-api/src/test/java/com/juick/api/tests/MessagesTests.java
+++ b/juick-api/src/test/java/com/juick/api/tests/MessagesTests.java
@@ -152,7 +152,7 @@ public class MessagesTests {
Message msg = MockUtils.mockMessage(1, ugnich, msgText);
- when(messagesService.getMyFeed(1, 0))
+ when(messagesService.getMyFeed(1, 0, true))
.thenReturn(Collections.singletonList(1));
when(messagesService.getMessages(Collections.singletonList(1)))
.thenReturn(Collections.singletonList(msg));
@@ -183,7 +183,7 @@ public class MessagesTests {
.thenReturn(Optional.of(user));
when(userService.getFullyUserByName(ugnichName))
.thenReturn(user);
- when(messagesService.getMyFeed(1, 0))
+ when(messagesService.getMyFeed(1, 0, true))
.thenReturn(Collections.singletonList(1));
when(messagesService.getMessages(Collections.singletonList(1)))
.thenReturn(Collections.singletonList(msg));
@@ -213,7 +213,7 @@ public class MessagesTests {
.thenReturn(user);
when(userService.getUserByName(ugnichName))
.thenReturn(user);
- when(messagesService.getMyFeed(1, 0))
+ when(messagesService.getMyFeed(1, 0, false))
.thenReturn(Collections.singletonList(1));
when(messagesService.getMessages(Collections.singletonList(1)))
.thenReturn(Collections.singletonList(msg));