Commit 4e7b9b6
authored
fix(rss): logic for acquiring target channels (#1090)
This commit attempts to change the way a text channel list for RSS feeds
gets generated, as it would originally not consider any channels that
matched the fallback channel pattern and it would constantly log a
warning that would clutter the log channels and skip sending any RSS
posts as a result.
The method which is responsible for finding the text channels from a
given RSS feed configuration now focuses on collecting a list of text
channels that match the target channel pattern from the configuration,
and if no channels are found, the same collection attempt happens with
the fallback channel pattern. In case an empty list is still yielded, a
now-improved and more accurate warning message gets logged.1 parent 2738a98 commit 4e7b9b6
File tree
1 file changed
+14
-13
lines changed- application/src/main/java/org/togetherjava/tjbot/features/javamail
1 file changed
+14
-13
lines changedLines changed: 14 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
9 | 10 | | |
10 | 11 | | |
11 | 12 | | |
| |||
125 | 126 | | |
126 | 127 | | |
127 | 128 | | |
128 | | - | |
129 | | - | |
| 129 | + | |
| 130 | + | |
130 | 131 | | |
131 | 132 | | |
132 | 133 | | |
| |||
326 | 327 | | |
327 | 328 | | |
328 | 329 | | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
338 | | - | |
339 | | - | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
340 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
341 | 342 | | |
342 | 343 | | |
343 | 344 | | |
| |||
0 commit comments