AI: address issue #439
このコミットが含まれているのは:
@@ -314,7 +314,9 @@ class PostsController < ApplicationController
|
|||||||
def viewed
|
def viewed
|
||||||
return head :unauthorized unless current_user
|
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
|
head :no_content
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
新しいイシューから参照
ユーザーをブロックする