From b63887a26a6393642ea9967ada04d71be3ed5a7c Mon Sep 17 00:00:00 2001 From: Matt Jankowski Date: Thu, 1 Aug 2024 08:44:53 -0400 Subject: [PATCH] Drop "forbidden" alias --- app/models/status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/status.rb b/app/models/status.rb index 28cfa3eab5..524b4d1d4c 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -124,7 +124,7 @@ class Status < ApplicationRecord end } scope :tagged_with_none, lambda { |tag_ids| - where('NOT EXISTS (SELECT * FROM taggings forbidden WHERE forbidden.taggable_id = statuses.id AND forbidden.taggable_type = \'Status\' AND forbidden.tag_id IN (?))', tag_ids) + where('NOT EXISTS (SELECT * FROM taggings WHERE taggings.taggable_id = statuses.id AND taggings.taggable_type = \'Status\' AND taggings.tag_id IN (?))', tag_ids) } scope :distributable_visibility, -> { where(visibility: %i(public unlisted)) } scope :list_eligible_visibility, -> { where(visibility: %i(public unlisted private)) }