# Admin is allowed to make topic unlisted several times

**URL:** <https://meta.discourse.org/t/admin-is-allowed-to-make-topic-unlisted-several-times/60320>\
**Category:** Bug\
**Tags:** unlisting\
**Created:** [April 2, 2017, 3:39pm UTC](https://meta.discourse.org/t/admin-is-allowed-to-make-topic-unlisted-several-times/60320 "2017-04-02T15:39:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)\
**Post date:** [April 2, 2017, 3:39pm UTC](https://meta.discourse.org/t/admin-is-allowed-to-make-topic-unlisted-several-times/60320/1 "2017-04-02T15:39:16Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/f/7/f72784dbf9a2d57827eb1cb972074d18c5c6515e.png)

as a result of slow web connection, I had unlisted this topic wrongly several times. perhaps after the first time I should have got a warning or whatever that `the topic has already become unlisted`.

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [April 2, 2017, 10:28pm UTC](https://meta.discourse.org/t/admin-is-allowed-to-make-topic-unlisted-several-times/60320/2 "2017-04-02T22:28:55Z")

</div>

Good point, if it is already unlisted we shouldn’t allow it to happen again, additional requests for the “same” state should be ignored (applies to most topic states). Can you add this to your list @eviltrout?

---

<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:** [April 2, 2017, 11:38pm UTC](https://meta.discourse.org/t/admin-is-allowed-to-make-topic-unlisted-several-times/60320/3 "2017-04-02T23:38:45Z")

</div>

We ran into this recently, but with closed. Tried to run a bulk close (66 topics), overloaded the server, and when it came back up had 22 closed posts. (We’ve since moved to a beefier server.)

---

<div class="post-metadata">

**Author:** ![eviltrout](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eviltrout/32/5275_2.png) [@eviltrout](https://meta.discourse.org/u/eviltrout)\
**Post date:** [April 7, 2017, 9:15pm UTC](https://meta.discourse.org/t/admin-is-allowed-to-make-topic-unlisted-several-times/60320/4 "2017-04-07T21:15:30Z")

</div>

It’s surprisingly difficult to do this in a generic way for all topic statuses. However, I did manage to get it working for open/closed/listed/unlisted/archive/unarchived/autoclosed - getting it to work for pinned is much harder.

[https://github.com/discourse/discourse/commit/40cee37bcc694cf6c3905ac2918b4bbcd45c6af3](https://github.com/discourse/discourse/commit/40cee37bcc694cf6c3905ac2918b4bbcd45c6af3)

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [April 8, 2017, 2:10am UTC](https://meta.discourse.org/t/admin-is-allowed-to-make-topic-unlisted-several-times/60320/5 "2017-04-08T02:10:38Z")

</div>


