flags: fix flagger:<name> not returning self-flagged uploads
Fix the search `flagger:evazion user:evazion` not returning the user's own self-flagged uploads.
Followup to a6e0872ce.
Fixes #4690: user profile 'flags' count links to /post_flags with different search criteria
This commit is contained in:
@@ -220,7 +220,7 @@ class UsersControllerTest < ActionDispatch::IntegrationTest
|
||||
get_auth profile_path, @user, as: :json
|
||||
assert_response :success
|
||||
|
||||
assert_equal(@user.comment_count, response.parsed_body["comment_count"])
|
||||
assert_equal(@user.comments.count, response.parsed_body["comment_count"])
|
||||
end
|
||||
|
||||
should "redirect anonymous users to the sign in page" do
|
||||
|
||||
Reference in New Issue
Block a user