# "Un-pin Topic" button does not display while a topic is unlisted

**URL:** https://meta.discourse.org/t/un-pin-topic-button-does-not-display-while-a-topic-is-unlisted/96440
**Category:** Bug
**Tags:** unlisting
**Created:** [September 5, 2018, 7:23pm UTC](https://meta.discourse.org/t/un-pin-topic-button-does-not-display-while-a-topic-is-unlisted/96440 "2018-09-05T19:23:53Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![ntauthority](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ntauthority/32/484750_2.png) [@ntauthority](https://meta.discourse.org/u/ntauthority)
#### Post date: [September 5, 2018, 7:23pm UTC](https://meta.discourse.org/t/un-pin-topic-button-does-not-display-while-a-topic-is-unlisted/96440/1 "2018-09-05T19:23:53Z")

</div>

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

1. Make a new topic.
2. Pin the topic as banner.
3. Make the topic unlisted.
4. 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.

---

<div class="post-metadata">

### Author: ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)
#### Post date: [September 5, 2018, 7:49pm UTC](https://meta.discourse.org/t/un-pin-topic-button-does-not-display-while-a-topic-is-unlisted/96440/2 "2018-09-05T19:49:20Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)
#### Post date: [September 12, 2018, 6:53pm UTC](https://meta.discourse.org/t/un-pin-topic-button-does-not-display-while-a-topic-is-unlisted/96440/4 "2018-09-12T18:53:14Z")

</div>

Fixed by

[https://github.com/discourse/discourse/pull/6390](https://github.com/discourse/discourse/pull/6390)

---

<div class="post-metadata">

### Author: ![nbianca](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nbianca/32/157984_2.png) [@nbianca](https://meta.discourse.org/u/nbianca)
#### Post date: [September 24, 2018, 4:12pm UTC](https://meta.discourse.org/t/un-pin-topic-button-does-not-display-while-a-topic-is-unlisted/96440/5 "2018-09-24T16:12:46Z")

</div>

This topic was automatically closed after 7 days. New replies are no longer allowed.
