Updated status.recent scope

• Updated:
- status.recent scope to use created_at not updated_at
This commit is contained in:
mgabdev 2020-08-06 23:10:59 -05:00
parent f964950282
commit 6fb9701f0d

View File

@ -87,7 +87,7 @@ class Status < ApplicationRecord
default_scope { recent } 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 :remote, -> { where(local: false).or(where.not(uri: nil)) }
scope :local, -> { where(local: true).or(where(uri: nil)) } scope :local, -> { where(local: true).or(where(uri: nil)) }