Allow private categories to onebox

AI-generated summary

The discussion is about allowing private categories to onebox in Discourse. Currently, only categories visible to everyone can be oneboxed. nathank suggests that internal category links should result in oneboxes, especially for building showcase topics that outline private content. However, NateDhaliwal proposes that this could be a setting, as some categories may not want their description to be revealed. Moin points out that if the “about” topic of a category oneboxes, it doesn’t make sense that the category link itself doesn’t. Moin thinks that both should work consistently in private categories, rather than having different behavior.

At present, a Category will only Onebox if visible to everyone. For example:

Contribute > UX does:

lounge doesn’t:

https://meta.discourse.org/c/lounge/20

Unlike Topics, it won’t Onebox even if being posted from within that category, so this can’t be easily worked around.

It would be super helpful if internal category links resulted in Oneboxes - especially for building easily updatable (just a rebake) showcase topics that outline the private content available on a site.

6 Likes

Perhaps this could be a setting? Some categories may be only known to certain people, but the description gives it away and they don’t want that?

2 Likes

In cases where the “about” topic of a category oneboxes, the category could onebox too. The information is the same:

But when you do the same within lounge with the link to the lounge category and its “about” topic, the topic oneboxes, but the category link does not.

3 Likes

I know. Basically, what I am suggesting is that it could be the intended bahaviour.

Why do you think it’s intended that one of the two works in private categories?

I think it makes sense if both work alike.

3 Likes