I’d like to propose a new feature that could enhance usability for cases involving private categories: the ability to optionally enable automatic link previews (Oneboxes) for private topics/categories, even for users without explicit access.
Hello Discourse team and community,
What’s the problem?
Currently, Discourse blocks Onebox previews for topics located in private categories unless the user has direct access. While this is an effective security measure, it can impact workflows where users have a legitimate reason to reference private links inside their community.
For example:
- Internal Communities: Sharing private topics (e.g., in team discussions) could benefit greatly from including basic metadata like the topic title or a snippet from the first post.
- Cross-Team Communication: When teams collaborate but don’t have direct category access, previews could increase efficiency by reducing “blind references.”
Proposed Functionality
- Add a site setting, such as
allow_private_link_previews
. - When enabled:
- Links to topics in private categories would generate a preview containing only safe data (e.g., topic title, limited excerpt).
- Permissions are respected: no full content exposure.
- Links to the full topic would still go through normal access controls.
Privacy Considerations
Privacy and security should remain the default. When the setting is disabled, all current behaviors should persist. Even when enabled, sensitive or restricted data should never be included in previews.
Why this matters?
Discourse is a fantastic tool for fostering discussions. By enabling optional link previews for restricted content, users can maintain privacy while increasing clarity within teams or communities that rely on frequent referencing of private discussions.
This post was written with the assistance of an AI bot, making it collaborative in nature. Feedback, edits, or improvements are always appreciated, as the goal is to craft something that resonates with the needs of the Discourse community.
Thank you for considering this!
P.S. I came across a related discussion: “Allow Private Categories to Onebox”. It explores a similar idea, focusing on improving Onebox functionality for private categories. Combining insights from both topics might help us arrive at a more robust solution.