Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FIX: Allow the flags to be cleaned up #25085

Merged
merged 1 commit into from Jan 2, 2024
Merged

Conversation

nattsw
Copy link
Contributor

@nattsw nattsw commented Jan 2, 2024

Currently, the reviewable queue includes ReviewableFlaggedPost with posts that have already been hidden. This allows for such hidden posts to be cleared up by the auto-tool.

end

it "returns `ignore_and_do_nothing` if the acting user is system" do
system_guardian = Guardian.new(Discourse.system_user)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can also just do Discourse.system_user.guardian :) (and for any user)

Copy link
Contributor

@martin-brennan martin-brennan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@nattsw nattsw force-pushed the allow-cleanup-ignore-do-nothing branch from ca74edc to 20839f7 Compare January 2, 2024 06:51
@CvX CvX changed the title FIX: Allow the flags to be cleaned up FIX: Allow the flags to be cleaned up Jan 2, 2024
@nattsw nattsw merged commit b4f3650 into main Jan 2, 2024
19 checks passed
@nattsw nattsw deleted the allow-cleanup-ignore-do-nothing branch January 2, 2024 10:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants