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:
mgabdev 2020-12-31 16:40:56 -05:00
parent 74cc04c4cf
commit 585b0eccdb
1 changed files with 1 additions and 1 deletions

View File

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