diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2019-03-15 04:36:41 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-03-15 04:36:41 +0100 |
commit | ba84b6d4d7b2e1ccdcbfcdd5e0d09fbfdb241f45 (patch) | |
tree | df510bf1efe17af68a5cfd9a1536c8bd21b9c46e /app/models | |
parent | 317c43b75be027f971c1c7e28890fdd37b63e931 (diff) |
Add `visibility` param to reblog REST API (#9851)
Use async worker for creating reblog notification to improve performance
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/status.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/status.rb b/app/models/status.rb index f33130dd6..d029ff3cd 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -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 } |