Admin is allowed to make topic unlisted several times

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.

1 Like

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?

5 Likes

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.)

1 Like

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

4 Likes