From 483f8fb888c7c7bcb1a13113a54c78357235daca Mon Sep 17 00:00:00 2001 From: mgabdev <> Date: Tue, 19 May 2020 13:00:57 -0400 Subject: [PATCH] Updated status.rb recent scope to reorder by updated_at MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit • Updated: - status.rb recent scope to reorder by updated_at from id --- app/models/status.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/status.rb b/app/models/status.rb index 6f4c94ce..fddc9229 100644 --- a/app/models/status.rb +++ b/app/models/status.rb @@ -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)) }