AI: address issue #439

このコミットが含まれているのは:
Codex Night Worker
2026-11-13 12:25:24 +09:00
コミット b7d92b7ddd
+3 -1
ファイルの表示
@@ -314,7 +314,9 @@ class PostsController < ApplicationController
def viewed
return head :unauthorized unless current_user
current_user.viewed_posts << Post.find(params[:id])
UserPostView.create_or_find_by!(
user: current_user,
post: Post.find(params[:id]))
head :no_content
end