mirror of
https://github.com/discourse/discourse.git
synced 2025-05-31 02:58:48 +08:00
FEATURE: add a specific flag reason when a post has been hidden
This commit is contained in:
@ -95,7 +95,7 @@ describe PostAction do
|
||||
post.reload
|
||||
post.hidden.should be_false
|
||||
|
||||
PostAction.hide_post!(post)
|
||||
PostAction.hide_post!(post, PostActionType.types[:off_topic])
|
||||
post.reload
|
||||
post.hidden.should be_true
|
||||
end
|
||||
|
Reference in New Issue
Block a user