Skip to content

Commit e6db2c4

Browse files
ysksnhiyuki2578
authored andcommitted
Fix scope latest of ReportNote (mastodon#9630)
1 parent 618deb0 commit e6db2c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/models/report_note.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class ReportNote < ApplicationRecord
1515
belongs_to :account
1616
belongs_to :report, inverse_of: :notes, touch: true
1717

18-
scope :latest, -> { reorder('created_at ASC') }
18+
scope :latest, -> { reorder(created_at: :desc) }
1919

2020
validates :content, presence: true, length: { maximum: 500 }
2121
end

0 commit comments

Comments
 (0)