fix: ensure Discord channels are created for all new bookmark lists #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/discord-new-group-channel"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Why:
list that already had a Discord channel. Any new lists in the bookmark
were skipped, so their forum channels were never created.
What:
approach:
channels for each one.
found in the pre-fetched list_map.
Impact:
channel created when a bookmark is saved to them.
Why: - When a bookmark belonged to multiple lists, the code broke at the first list that already had a Discord channel. Any new lists in the bookmark were skipped, so their forum channels were never created. What: - Changed _sync_missed_bookmarks and _handle_crawled to use a two-pass approach: 1. First pass: iterate all bookmark lists and create missing Discord channels for each one. 2. Second pass: pick the first available channel to post the bookmark. - Added fallback to use bookmark list data directly when list info is not found in the pre-fetched list_map. Impact: - New Karakeep groups/lists now correctly get their Discord forum channel created when a bookmark is saved to them.