mirror of
https://github.com/discourse/discourse.git
synced 2025-05-21 18:12:32 +08:00
FEATURE: New modal to show flags received for a user
This commit is contained in:
@ -59,6 +59,12 @@ describe FlagQuery do
|
||||
posts = FlagQuery.flagged_posts_report(admin, topic_id: -1)
|
||||
expect(posts[0]).to be_blank
|
||||
|
||||
# Try by user
|
||||
posts = FlagQuery.flagged_posts_report(admin, user_id: post.user_id)
|
||||
expect(posts).to be_present
|
||||
posts = FlagQuery.flagged_posts_report(admin, user_id: -1000)
|
||||
expect(posts[0]).to be_blank
|
||||
|
||||
# chuck post in category a mod can not see and make sure its missing
|
||||
category = Fabricate(:category)
|
||||
category.set_permissions(admins: :full)
|
||||
|
Reference in New Issue
Block a user