みてるぞ 1 week ago
parent
commit
1dcad24a27
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      backend/app/models/post.rb

+ 1
- 1
backend/app/models/post.rb View File

@@ -36,7 +36,7 @@ class Post < ApplicationRecord
ids = sorted.map(&:first)
ids = ids.first(limit) if limit

Post.where(id: ids)
Post.where(id: ids).index_by(&:id).values_at(*ids)
end

def resized_thumbnail!


Loading…
Cancel
Save