Skip to content
This repository was archived by the owner on Jul 14, 2025. It is now read-only.

FIX: Sharing to Discord forum channels requires a thread_name#251

Merged
pento merged 2 commits intomainfrom
pento/fix-sharing-to-discord-forum-channels
Feb 25, 2025
Merged

FIX: Sharing to Discord forum channels requires a thread_name#251
pento merged 2 commits intomainfrom
pento/fix-sharing-to-discord-forum-channels

Conversation

@pento
Copy link
Copy Markdown
Contributor

@pento pento commented Feb 25, 2025

✨ What's This?

Discourse is able to share topics and replies to normal Discord channels, but it doesn't work with forum channels, which require an additional thread_name parameter.

This change fixes the issue by checking for the specific error the Discord returns when trying to share to a forum channel, adding the thread_name, then trying again.

This is intentionally a minimal fix, additional work would be required to make the sharing more closely fit the style of Discord forum channels.

📺 Screenshots

Topic and Reply in a normal channel

Screenshot 2025-02-25 at 11 14 10 am

Topic and Reply in a forum channel

Screenshot 2025-02-25 at 11 13 32 am

The thread view for the topic and reply in the forum channel

Screenshot 2025-02-25 at 11 13 51 am
Screenshot 2025-02-25 at 11 13 55 am

👑 Testing

Setup sharing to Discord, and ensure that posts are shared as expected to different channel types.

@pento pento self-assigned this Feb 25, 2025
@pento pento merged commit 61a727a into main Feb 25, 2025
6 checks passed
@pento pento deleted the pento/fix-sharing-to-discord-forum-channels branch February 25, 2025 03:40
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants