diff options
Diffstat (limited to 'juick-common')
-rw-r--r-- | juick-common/src/main/java/com/juick/server/CommandsManager.java | 2 | ||||
-rw-r--r-- | juick-common/src/main/java/com/juick/service/SubscriptionService.java | 2 |
2 files changed, 2 insertions, 2 deletions
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<User> getUsersSubscribedToComments(Message msg, Message reply, boolean blacklisted); - List<User> getUsersSubscribedToUserRecommendations(int uid, int mid, int muid); + List<User> getUsersSubscribedToUserRecommendations(int uid, Message msg); boolean subscribeMessage(Message message, User user); |