0
0
Fork 0

Add visibility param to reblog REST API (#9851)

Use async worker for creating reblog notification to improve performance
This commit is contained in:
Eugen Rochko 2019-03-15 04:36:41 +01:00 committed by GitHub
parent 317c43b75b
commit ba84b6d4d7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View file

@ -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 }