Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes quotation marks in titles on /transfer (#1335)
  • Loading branch information
Bobi222 authored Oct 24, 2025
commit 113f4b2cf276729da3f2784f02861c7fd881733f
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,10 @@ public void onMessageContext(MessageContextInteractionEvent event) {
.formatted(originalMessage);
Optional<String> chatGptTitle = chatGptService.ask(chatGptTitleRequest, null);
String title = chatGptTitle.orElse(createTitle(originalMessage));
if (title.startsWith("\"") && title.endsWith("\"")) {
title = title.substring(1, title.length() - 1);
}

if (title.length() > TITLE_MAX_LENGTH) {
title = title.substring(0, TITLE_MAX_LENGTH);
}
Expand Down
Loading