Fix status creation API silently discarding invalid poll (#10171)
This commit is contained in:
parent
0c8e3beb51
commit
7c61f27433
1 changed files with 1 additions and 0 deletions
|
@ -70,6 +70,7 @@ class Status < ApplicationRecord
|
||||||
validates_with StatusLengthValidator
|
validates_with StatusLengthValidator
|
||||||
validates_with DisallowedHashtagsValidator
|
validates_with DisallowedHashtagsValidator
|
||||||
validates :reblog, uniqueness: { scope: :account }, if: :reblog?
|
validates :reblog, uniqueness: { scope: :account }, if: :reblog?
|
||||||
|
validates_associated :owned_poll
|
||||||
|
|
||||||
default_scope { recent }
|
default_scope { recent }
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue