From 5518faa7d7c28ae2a996fe057e7747d3b307c749 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Wed, 15 Aug 2018 15:05:42 +0300 Subject: Recommendation subscribers should not contain message author --- juick-common/src/main/java/com/juick/server/CommandsManager.java | 2 +- juick-common/src/main/java/com/juick/service/SubscriptionService.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'juick-common/src/main/java/com') diff --git a/juick-common/src/main/java/com/juick/server/CommandsManager.java b/juick-common/src/main/java/com/juick/server/CommandsManager.java index 5c034ce3..58c07255 100644 --- a/juick-common/src/main/java/com/juick/server/CommandsManager.java +++ b/juick-common/src/main/java/com/juick/server/CommandsManager.java @@ -298,7 +298,7 @@ public class CommandsManager { case Added: applicationEventPublisher.publishEvent(new LikeEvent(this, user, msg, subscriptionService.getUsersSubscribedToUserRecommendations( - user.getUid(), msg.getMid(), msg.getUser().getUid()))); + user.getUid(), msg))); return CommandResult.fromString("Message is added to your recommendations"); case Deleted: return CommandResult.fromString("Message deleted from your recommendations."); diff --git a/juick-common/src/main/java/com/juick/service/SubscriptionService.java b/juick-common/src/main/java/com/juick/service/SubscriptionService.java index c726e68d..d2ff9962 100644 --- a/juick-common/src/main/java/com/juick/service/SubscriptionService.java +++ b/juick-common/src/main/java/com/juick/service/SubscriptionService.java @@ -36,7 +36,7 @@ public interface SubscriptionService { List getUsersSubscribedToComments(Message msg, Message reply, boolean blacklisted); - List getUsersSubscribedToUserRecommendations(int uid, int mid, int muid); + List getUsersSubscribedToUserRecommendations(int uid, Message msg); boolean subscribeMessage(Message message, User user); -- cgit v1.2.3