このコミットが含まれているのは:
2026-09-23 10:59:03 +09:00
コミット 894f9f9571
5個のファイルの変更58行の追加10行の削除
+4 -1
ファイルの表示
@@ -505,7 +505,10 @@ class PostsController < ApplicationController
memo[tag_id] = TagRepr.inline(tag).merge(children:, sections:)
end
root_ids.filter_map { |id| build_node.call(id, []) }
internal_tags = root_ids.filter_map { |id| build_node.call(id, []) }
external_tags =
post.external_tags.map { ExternalTagRepr.inline(_1).merge(children: [], sections: []) }
internal_tags + external_tags
end
def sibling_posts_by_parent parent_post_ids