Add visibility
param to reblog REST API (#9851)
Use async worker for creating reblog notification to improve performance
This commit is contained in:
@ -70,6 +70,7 @@ class Status < ApplicationRecord
|
||||
validates_with StatusLengthValidator
|
||||
validates_with DisallowedHashtagsValidator
|
||||
validates :reblog, uniqueness: { scope: :account }, if: :reblog?
|
||||
validates :visibility, exclusion: { in: %w(direct limited) }, if: :reblog?
|
||||
validates_associated :owned_poll
|
||||
|
||||
default_scope { recent }
|
||||
|
Reference in New Issue
Block a user