Skip to content

Commit

Permalink
Fix: 画像の並び順が変わる場合
Browse files Browse the repository at this point in the history
  • Loading branch information
kmycode committed Dec 9, 2023
1 parent fdecd96 commit 6797e6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/status.rb
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def emojis

def ordered_media_attachments
if ordered_media_attachment_ids.nil?
media_attachments
media_attachments.order(id: :asc)
else
map = media_attachments.index_by(&:id)
ordered_media_attachment_ids.filter_map { |media_attachment_id| map[media_attachment_id] }
Expand Down

0 comments on commit 6797e6e

Please sign in to comment.