This commit is contained in:
2025-08-30 15:17:51 +09:00
parent 199783a6d4
commit dd764be0cb
2 changed files with 5 additions and 1 deletions
+1 -1
View File
@@ -71,7 +71,7 @@ class PostsController < ApplicationController
post.thumbnail.attach(thumbnail)
if post.save
post.resized_thumbnail!
post.tags = Tag.normalise_tags(tags_names)
post.tags = Tag.normalise_tags(tag_names)
render json: post.as_json(include: { tags: { only: [:id, :name, :category, :post_count] } }),
status: :created
else