このコミットが含まれているのは:
2026-11-07 15:48:47 +09:00
コミット 50185ca8b7
5個のファイルの変更、148行の追加、146行の削除
+1
ファイルの表示
@@ -15,6 +15,7 @@ class PostVersionsController < ApplicationController
offset = (page - 1) * limit
q = HistoryAccess.visible(PostVersion.all)
q = q.with_previous_version if tag_id || external_tag_id
q = q.where('post_versions.post_id = ?', post_id) if post_id
q = q.with_previous_version if tag_id || external_tag_id
if external_tag_id || (tag_id && !(Tag.exists?(id: tag_id)))