Commit 482eef7
fix: handle empty message content for thread titles
Ensures a fallback thread title is provided when the original message content is empty.
The thread title will now default to the message author's name in such cases,
preventing empty or uninformative thread titles.
Co-authored-by: billpapat <[email protected]>
Co-authored-by: Chris Sdogkos <[email protected]>
Mentored-by: Chris Sdogkos <[email protected]>1 parent 8b2d3c5 commit 482eef7
File tree
1 file changed
+12
-5
lines changed- application/src/main/java/org/togetherjava/tjbot/features/basic
1 file changed
+12
-5
lines changedLines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | 58 | | |
60 | | - | |
61 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
62 | 66 | | |
63 | 67 | | |
64 | 68 | | |
65 | 69 | | |
66 | 70 | | |
67 | | - | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
68 | 75 | | |
69 | 76 | | |
70 | | - | |
| 77 | + | |
71 | 78 | | |
72 | 79 | | |
73 | 80 | | |
| |||
0 commit comments