From 3b1287c4245405c55a72a48c055c88a12643a770 Mon Sep 17 00:00:00 2001 From: Karina Kwiatek <6197148+raccube@users.noreply.github.com> Date: Sat, 22 Jan 2022 23:37:51 +0100 Subject: [PATCH] Apply suggestions from @nilsding Co-authored-by: Georg Gadinger --- app/controllers/ajax/relationship_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/ajax/relationship_controller.rb b/app/controllers/ajax/relationship_controller.rb index efc684e1..7c6660b1 100644 --- a/app/controllers/ajax/relationship_controller.rb +++ b/app/controllers/ajax/relationship_controller.rb @@ -11,7 +11,7 @@ class Ajax::RelationshipController < AjaxController params.require :screen_name UseCase::Relationship::Create.call( - source_user: current_user.screen_name, + source_user: current_user, target_user: params[:screen_name], type: params[:type] ) @@ -25,7 +25,7 @@ class Ajax::RelationshipController < AjaxController def destroy UseCase::Relationship::Destroy.call( - source_user: current_user.screen_name, + source_user: current_user, target_user: params[:screen_name], type: params[:type] )