diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-05 15:21:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-05 15:21:31 +0100 |
commit | 0c43c320dbae8f72f5f5c40e7a7944196cce368a (patch) | |
tree | 1f43262540e0f26572dd3310c40aa26e3d0cbb18 /app | |
parent | df5924a1db08f362fcc8cf873ffaed72a2ce9f19 (diff) |
Fix status creation API silently discarding invalid poll (#10171)
Diffstat (limited to 'app')
-rw-r--r-- | app/models/status.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index 74deeeb50..f33130dd6 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -70,6 +70,7 @@ class Status < ApplicationRecord validates_with StatusLengthValidator validates_with DisallowedHashtagsValidator validates :reblog, uniqueness: { scope: :account }, if: :reblog? + validates_associated :owned_poll default_scope { recent } |