mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-13 15:58:50 +00:00
Remove unused scope Announcement.without_muted (#28645)
This commit is contained in:
@@ -20,7 +20,6 @@
|
||||
class Announcement < ApplicationRecord
|
||||
scope :unpublished, -> { where(published: false) }
|
||||
scope :published, -> { where(published: true) }
|
||||
scope :without_muted, ->(account) { joins("LEFT OUTER JOIN announcement_mutes ON announcement_mutes.announcement_id = announcements.id AND announcement_mutes.account_id = #{account.id}").where(announcement_mutes: { id: nil }) }
|
||||
scope :chronological, -> { order(coalesced_chronology_timestamps.asc) }
|
||||
scope :reverse_chronological, -> { order(coalesced_chronology_timestamps.desc) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user