From 1e9779588c5595af410bfeaa981946fa3c2cef32 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 13 Feb 2023 14:09:53 +0300 Subject: Fix isSubscribed usage --- src/main/java/com/juick/CommandsManager.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3