Is rejected posts to top bar on user summary page working?

Continuing the discussion from Add number of rejected posts to top bar on user summary page:

I’m looking at this now and am not seeing a rejected post count on the user card. I looked at the user.json output and don’t see the data there. Is the rejected count being added to the model?

Or, maybe I don’t understand something.

3 Likes

I just checked and this is working as intended.

The count is displayed on the user summary page if at least one queued post was rejected.

3 Likes

Here’s what I see:

https://SITE/review?additional_filters={}&sort_order=priority&status=rejected&username=BAD_PERSON

is showing a bunch of posts, but his user profile shows only deleted posts and not any rejected posts. (I checked again in safe-mode). These are posts that were caught with a watched-word filter and then rejected.

2 Likes

If the rejected posts count is the only value to show, the staff counters won’t be displayed. This PR will fix it:

https://github.com/discourse/discourse/pull/9845

Thanks, @pfaffman!

3 Likes

Just rebuilt and am on Discourse 2.5.0.beta4 - https://github.com/discourse/discourse version 68db5deaeca9e3b89501581abaf6e69a9f7ae76. Still don’t see rejected posts for that user. Did I jump the gun?

1 Like

I made a wrong assumption when I originally added this count. Posts won’t be created if the item gets rejected.

I tested here on meta and it’s working as expected now.

3 Likes

Hooray!

image

3 Likes