We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3b36c7 commit 113f4b2Copy full SHA for 113f4b2
application/src/main/java/org/togetherjava/tjbot/features/moderation/TransferQuestionCommand.java
@@ -100,6 +100,10 @@ public void onMessageContext(MessageContextInteractionEvent event) {
100
.formatted(originalMessage);
101
Optional<String> chatGptTitle = chatGptService.ask(chatGptTitleRequest, null);
102
String title = chatGptTitle.orElse(createTitle(originalMessage));
103
+ if (title.startsWith("\"") && title.endsWith("\"")) {
104
+ title = title.substring(1, title.length() - 1);
105
+ }
106
+
107
if (title.length() > TITLE_MAX_LENGTH) {
108
title = title.substring(0, TITLE_MAX_LENGTH);
109
}
0 commit comments