FIX: Allow the flags to be cleaned up (#25085)

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.
This commit is contained in:
Natalie Tay
2024-01-02 18:32:50 +08:00
committed by GitHub
parent b92993fcee
commit b4f36507e0
2 changed files with 16 additions and 1 deletions

View File

@@ -108,7 +108,7 @@ class ReviewableFlaggedPost < Reviewable
label: "reviewables.actions.ignore.title",
)
if !post.hidden?
if !post.hidden? || guardian.user.is_system_user?
build_action(actions, :ignore_and_do_nothing, icon: "external-link-alt", bundle: ignore)
end
if guardian.can_delete_post_or_topic?(post)