mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user