aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2023-02-13 14:09:53 +0300
committerGravatar Vitaly Takmazov2023-02-13 14:14:26 +0300
commit1e9779588c5595af410bfeaa981946fa3c2cef32 (patch)
tree55bc1f94fe24bb6984f9ff6da2554c9da5ff176f /src/main/java
parent75a631d48bc3e3fea8d35cddbe0e2c639c252796 (diff)
Fix isSubscribed usage
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/com/juick/CommandsManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/CommandsManager.java b/src/main/java/com/juick/CommandsManager.java
index 6019c7f9..a643225f 100644
--- a/src/main/java/com/juick/CommandsManager.java
+++ b/src/main/java/com/juick/CommandsManager.java
@@ -583,7 +583,7 @@ public class CommandsManager {
}
applicationEventPublisher.publishEvent(
new SystemEvent(this, SystemActivity.read(user, msg.get())));
- Message original = messagesService.getMessage(mid).orElseThrow(IllegalStateException::new);
+ Message original = messagesService.getMessage(user.getUid(), mid).orElseThrow(IllegalStateException::new);
if (!user.isAnonymous() && !original.isSubscribed()) {
subscriptionService.subscribeMessage(original, user);
}