Fix #4315: Disapproval messages aren't striped of spaces.

Set blank disapproval messages to null to prevent them from showing up
in wildcard searches.
This commit is contained in:
evazion
2020-03-03 04:26:39 -06:00
parent 143bfdfb5b
commit b9939c6356
3 changed files with 14 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
FactoryBot.define do
factory(:post_disapproval) do
user
post
reason { %w(breaks_rules poor_quality disinterest).sample }
message { FFaker::Lorem.sentence }
end