コミットを比較

...
1 コミット
作成者 SHA1 メッセージ 日付
Codex Night Worker b7d92b7ddd AI: address issue #439 2026-11-13 12:25:24 +09:00
+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