このコミットが含まれているのは:
2026-03-15 19:54:37 +09:00
コミット 0eab847ebb
2個のファイルの変更89行の追加0行の削除
+2
ファイルの表示
@@ -185,6 +185,7 @@ class PostsController < ApplicationController
def changes
id = params[:id].presence
tag_id = params[:tag].presence
page = (params[:page].presence || 1).to_i
limit = (params[:limit].presence || 20).to_i
@@ -195,6 +196,7 @@ class PostsController < ApplicationController
pts = PostTag.with_discarded
pts = pts.where(post_id: id) if id.present?
pts = pts.where(tag_id:) if tag_id.present?
pts = pts.includes(:post, :created_user, :deleted_user,
tag: { tag_name: :wiki_page })