Updated status.rb recent scope to reorder by updated_at

• Updated:
- status.rb recent scope to reorder by updated_at from id
This commit is contained in:
mgabdev 2020-05-19 13:00:57 -04:00
parent 9fb8973350
commit 483f8fb888

View File

@ -85,7 +85,7 @@ class Status < ApplicationRecord
default_scope { recent }
scope :recent, -> { reorder(id: :desc) }
scope :recent, -> { reorder(updated_at: :desc) }
scope :remote, -> { where(local: false).or(where.not(uri: nil)) }
scope :local, -> { where(local: true).or(where(uri: nil)) }