discourse/app
Kelv 5f0bc4557f
FEATURE: Count only approved flagged posts in user pages (#22799)
FEATURE: Only approved flags for post counters

* Why was this change necessary?
The counters for flagged posts in the user's profile and user index from
the admin view include flags that were rejected, ignored or pending
review. This introduces unnecessary noise. Also the flagged posts
counter in the user's profile includes custom flags which add further
noise to this signal.

* How does it address the problem?

* Modifying User#flags_received_count to return posts with only approved
  standard flags
* Refactoring User#number_of_flagged_posts to alias to
  User#flags_received_count
* Updating the flagged post staff counter hyperlink to navigate to a
  filtered view of that user's approved flagged posts to maintain
  consistency with the counter
* Adding system tests for the profile page to cover the flagged posts
  staff counter
2023-07-31 13:33:10 +08:00
..
assets FEATURE: Count only approved flagged posts in user pages (#22799) 2023-07-31 13:33:10 +08:00
controllers FIX: Can't dismiss unread posts in topics of a sub-subcategory (#22870) 2023-07-31 11:22:16 +08:00
helpers SECURITY: Don't reuse CSP nonce between anonymous requests 2023-07-28 12:53:44 +01:00
jobs FIX: Missing pending queued posts from topic view (#22838) 2023-07-28 16:16:23 +00:00
mailers FIX: Order tags shown in email subject by topics count and name (#22586) 2023-07-13 15:39:58 +08:00
models FEATURE: Count only approved flagged posts in user pages (#22799) 2023-07-31 13:33:10 +08:00
serializers SECURITY: Hide restricted tags in noscript view 2023-07-28 12:53:50 +01:00
services FIX: Seed all categories and tags configured as defaults for nav menu (#22793) 2023-07-27 10:52:33 +08:00
views SECURITY: Hide restricted tags in noscript view 2023-07-28 12:53:50 +01:00