diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-06 16:36:16 +0200 |
---|---|---|
committer | Eugen Rochko <eugen@zeonfederated.com> | 2016-10-06 16:36:16 +0200 |
commit | 15d01a5e08dd13b55d6b67ea26d56894487c09a9 (patch) | |
tree | 44e31821b823d4fa53e1a592f604249290339cb5 /app/controllers | |
parent | b304cc07d525fdf0843cac419fa0e8e4bdda714e (diff) |
Better comparison of "local" domain
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/api/v1/follows_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/api/v1/follows_controller.rb b/app/controllers/api/v1/follows_controller.rb index f688f2e72..739ac1fb1 100644 --- a/app/controllers/api/v1/follows_controller.rb +++ b/app/controllers/api/v1/follows_controller.rb @@ -5,7 +5,7 @@ class Api::V1::FollowsController < ApiController def create raise ActiveRecord::RecordNotFound if params[:uri].blank? - @account = FollowService.new.call(current_user.account, params[:uri]).try(:target_account) + @account = FollowService.new.call(current_user.account, params[:uri].strip).try(:target_account) render action: :show end end |