0
0
Fork 0

Add Status.not_direct_visibility scope (#32065)

This commit is contained in:
Matt Jankowski 2024-11-07 05:32:33 -05:00 committed by GitHub
parent 73f66af6eb
commit 68b545ef33
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 4 additions and 3 deletions

View file

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