|
|
@ -121,6 +121,7 @@ class Status < ApplicationRecord
|
|
|
|
scope :tagged_with_none, lambda { |tag_ids|
|
|
|
|
scope :tagged_with_none, lambda { |tag_ids|
|
|
|
|
where('NOT EXISTS (SELECT * FROM statuses_tags forbidden WHERE forbidden.status_id = statuses.id AND forbidden.tag_id IN (?))', tag_ids)
|
|
|
|
where('NOT EXISTS (SELECT * FROM statuses_tags forbidden WHERE forbidden.status_id = statuses.id AND forbidden.tag_id IN (?))', tag_ids)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
scope :distributable_visibility, -> { where(visibility: %i(public unlisted)) }
|
|
|
|
scope :list_eligible_visibility, -> { where(visibility: %i(public unlisted private)) }
|
|
|
|
scope :list_eligible_visibility, -> { where(visibility: %i(public unlisted private)) }
|
|
|
|
|
|
|
|
|
|
|
|
after_create_commit :trigger_create_webhooks
|
|
|
|
after_create_commit :trigger_create_webhooks
|
|
|
|