Add Status.not_direct_visibility
scope (#32065)
This commit is contained in:
parent
73f66af6eb
commit
68b545ef33
3 changed files with 4 additions and 3 deletions
|
@ -127,6 +127,7 @@ class Status < ApplicationRecord
|
|||
}
|
||||
scope :distributable_visibility, -> { where(visibility: %i(public unlisted)) }
|
||||
scope :list_eligible_visibility, -> { where(visibility: %i(public unlisted private)) }
|
||||
scope :not_direct_visibility, -> { where.not(visibility: :direct) }
|
||||
|
||||
after_create_commit :trigger_create_webhooks
|
||||
after_update_commit :trigger_update_webhooks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue