Fix detailed poll validation errors not being returned in the API (#10261)
No more "Owned poll is invalid"
This commit is contained in:
@ -71,7 +71,8 @@ class Status < ApplicationRecord
|
||||
validates_with DisallowedHashtagsValidator
|
||||
validates :reblog, uniqueness: { scope: :account }, if: :reblog?
|
||||
validates :visibility, exclusion: { in: %w(direct limited) }, if: :reblog?
|
||||
validates_associated :owned_poll
|
||||
|
||||
accepts_nested_attributes_for :owned_poll
|
||||
|
||||
default_scope { recent }
|
||||
|
||||
|
Reference in New Issue
Block a user