diff options
author | Vitaly Takmazov | 2018-04-20 11:27:46 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-20 14:29:02 +0300 |
commit | 0f0009ff1c86fd8ae3af122851034eac21645e11 (patch) | |
tree | 6f9d3362f75f2e8528512e8f2f5b0eb249910531 /juick-server/src/main/java/com/juick/server | |
parent | db14962b7171eb0e713da54eecb032331d551d66 (diff) |
server: fix compatibility with likes
Diffstat (limited to 'juick-server/src/main/java/com/juick/server')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/api/Post.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/Post.java b/juick-server/src/main/java/com/juick/server/api/Post.java index 2e1ca6d72..3b022aae3 100644 --- a/juick-server/src/main/java/com/juick/server/api/Post.java +++ b/juick-server/src/main/java/com/juick/server/api/Post.java @@ -278,7 +278,7 @@ public class Post { throw new HttpForbiddenException(); } - MessagesService.RecommendStatus recommendStatus = messagesService.likeMessage(mid,msg.getUser().getUid(), + MessagesService.RecommendStatus recommendStatus = messagesService.likeMessage(mid,visitor.getUid(), reactionId); return recommendStatus == MessagesService.RecommendStatus.Error ? Status.ERROR :Status.OK; |