Steps to reproduce:
- Go to a topic that is pinned (like Discourse Development Contribution Guidelines)
- Click on the pin icon in the topic’s title
- Click on the pin icon again
The topic’s pinned state should toggle at each click. So, it should change from pinned to unpinned and to pinned again.
At the first click the topic changes from pinned to unpinned. The second click reloads the page and the topic is still unpinned.
The same thing happens when the pin icon is clicked in the topic list.