The issue concerns the absence of the ‘Un-pin Topic’ button for unlisted topics, preventing users from removing banner status without first re-listing the topic. ntauthority reports that while a topic can be pinned and then unlisted, the unpin option is hidden, as the same button is used for both pinning and unpinning. jomaxro confirms the bug and suggests solutions, such as disallowing unlisting of pinned topics or decoupling the pin/unpin interfaces. The issue was resolved by nbianca via a fix in the Discourse codebase [here](https://github.com/ discourse/discourse/pull/6390).
We recently hit an UI snag while trying to remove a banner topic that was unlisted - we had to list the topic before being able to hit the ‘Un-pin Topic’ button to be able to remove the banner topic.
Reproduction steps
Make a new topic.
Pin the topic as banner.
Make the topic unlisted.
Try to remove the banner status from the topic.
Expected behavior
I can remove the banner status without having to re-list the topic.
Actual behavior
The ‘Unpin topic’ button is hidden while the topic is unlisted, even if the topic is a (pinned?) banner topic, and actually visible as banner.
Can repro. This is an order or operations issue. You can’t pin an unlisted topic, but you can unlist a pinned topic. Since you can’t pin an unlisted topic, the unpin button is not displayed (as it’s the same button as “pin”).
Possible solutions:
don’t allow unlisting of pinned topics.
display the pinned button for unlisted topic, but throw an error if the user tries to pin instead of unpin
decouple the pin interface from the unpin interface.