fix self check for rec posts

This commit is contained in:
r888888888
2018-07-21 14:35:24 -07:00
parent fd2f6c9742
commit cafd952cc5

View File

@@ -14,7 +14,7 @@ private
def load_posts
if params[:context] == "post"
@posts = RecommenderService.recommend(post_id: params[:post_id])
@posts = RecommenderService.recommend(post_id: params[:post_id].to_i)
elsif params[:context] == "user"
@posts = RecommenderService.recommend(user_id: CurrentUser.id)