Better comparison of "local" domain
This commit is contained in:
parent
b304cc07d5
commit
15d01a5e08
4 changed files with 7 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue