diff options
author | Vitaly Takmazov | 2023-04-17 15:00:14 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2023-04-17 15:00:14 +0300 |
commit | cf3a5d8c979b114fceef43b35541b941bcbd62a1 (patch) | |
tree | 9a639a3b3ad35b94ebf13cad5889e9fa4974b820 /src/main/java/com/juick/CommandsManager.java | |
parent | 36bbb8317990022453b6127d90b11ffd5122d596 (diff) |
Private posts
Diffstat (limited to 'src/main/java/com/juick/CommandsManager.java')
-rw-r--r-- | src/main/java/com/juick/CommandsManager.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/main/java/com/juick/CommandsManager.java b/src/main/java/com/juick/CommandsManager.java index a643225f..a7a880c5 100644 --- a/src/main/java/com/juick/CommandsManager.java +++ b/src/main/java/com/juick/CommandsManager.java @@ -554,6 +554,9 @@ public class CommandsManager { return CommandResult.fromString("Tags are NOT updated (5 tags maximum?)"); } } else { + if (!messagesService.canViewThread(mid, user.getUid())) { + return CommandResult.fromString("Message unavailable"); + } if (txt.length() > 4096) { return CommandResult.fromString("Sorry, 4096 characters maximum."); } |