Viewing hidden posts requires two clicks

For quite some time now, viewing the content of posts hidden by the community has required two clicks.

Steps to reproduce:

  1. Open any topic with a hidden posts.
  2. Click View hidden post.
  3. Wait a second or two.
  4. Click View hidden post again.

Expected results:

After step :two:, a spinner appears and the post is shown after a short delay.

Actual results:

Nothing appears to happen after step :two:. Step :four: immediately reveals the content.


Bonus question: What’s up with this post? It was hidden when I started writing this post, and @Muiran edited it. Now, it has an edit icon :pencil2:, but opening the revision history tries to load the URL https://meta.discourse.org/posts/341011/revisions/latest.json?_=1508481978037 which 404s, leaving the history empty.

4 Likes

Hmm @eviltrout we should fix this if it repros.

4 Likes

I can repro this on Try: https://try.discourse.org/t/test-post-for-community-flagging/854

4 Likes

Easy fix here:

https://github.com/discourse/discourse/commit/383191cafcfabbdfcdd9b86013e60910bca5031c

6 Likes