posts: fix double deletion bug.
Fix a bug where, if a user a was deleting a post and they accidentally clicked the delete button twice, it could create two flags.
This commit is contained in:
@@ -880,7 +880,7 @@ class PostQueryBuilderTest < ActiveSupport::TestCase
|
||||
end
|
||||
|
||||
should "return posts for the status:unmoderated metatag" do
|
||||
flagged = create(:post, is_flagged: true)
|
||||
flagged = create(:post)
|
||||
pending = create(:post, is_pending: true)
|
||||
disapproved = create(:post, is_pending: true)
|
||||
appealed = create(:post, is_deleted: true)
|
||||
|
||||
Reference in New Issue
Block a user