Updated Status recent scope to sort by created_at not updated_at
• Updated: - Status recent scope to sort by created_at not updated_at Whenever someone makes an edit or updates their status it is sorted by updated_at and goes to the top of the list. We don't want that.
This commit is contained in:
parent
74cc04c4cf
commit
585b0eccdb
|
@ -90,7 +90,7 @@ class Status < ApplicationRecord
|
|||
|
||||
default_scope { recent }
|
||||
|
||||
scope :recent, -> { reorder(updated_at: :desc) }
|
||||
scope :recent, -> { reorder(created_at: :desc) }
|
||||
scope :remote, -> { where(local: false).or(where.not(uri: nil)) }
|
||||
scope :local, -> { where(local: true).or(where(uri: nil)) }
|
||||
|
||||
|
|
Loading…
Reference in New Issue