aboutsummaryrefslogtreecommitdiff
path: root/juick-common/src/main/java/com/juick
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-08-15 15:05:42 +0300
committerGravatar Vitaly Takmazov2018-08-15 15:05:42 +0300
commit5518faa7d7c28ae2a996fe057e7747d3b307c749 (patch)
tree3c896e81e9f209e6f4ce84786c2a1c51e3c10f9a /juick-common/src/main/java/com/juick
parente2750a57b9405522102fc6ad083e738f3f389249 (diff)
Recommendation subscribers should not contain message author
Diffstat (limited to 'juick-common/src/main/java/com/juick')
-rw-r--r--juick-common/src/main/java/com/juick/server/CommandsManager.java2
-rw-r--r--juick-common/src/main/java/com/juick/service/SubscriptionService.java2
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);