mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Fix status creation API silently discarding invalid poll (#10171)
This commit is contained in:
parent
df5924a1db
commit
0c43c320db
@ -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 }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user