This commit is contained in:
2026-05-01 05:01:13 +09:00
parent fa8eb66535
commit 9b1df20ab5
5 changed files with 22 additions and 14 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ class Post < ApplicationRecord
def snapshot_tag_names = tags.joins(:tag_name).order('tag_names.name').pluck('tag_names.name')
def snapshot_parent_post_ids = parents.order(:parent_post_id).pluck(:parent_post_id)
def snapshot_parent_post_ids = parents.order(:id).pluck(:id)
def related limit: nil
ids = post_similarities.order(cos: :desc)