Unverified Commit 0c43c320 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub

Fix status creation API silently discarding invalid poll (#10171)

parent df5924a1
......@@ -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 }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment