diff options
Diffstat (limited to 'app/controllers/api')
-rw-r--r-- | app/controllers/api/follows_controller.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/controllers/api/follows_controller.rb b/app/controllers/api/follows_controller.rb index 9ec4f46b8..604e65565 100644 --- a/app/controllers/api/follows_controller.rb +++ b/app/controllers/api/follows_controller.rb @@ -3,6 +3,10 @@ class Api::FollowsController < ApiController respond_to :json def create + if params[:uri].blank? + raise ActiveRecord::RecordNotFound + end + @follow = FollowService.new.(current_user.account, params[:uri]) render action: :show end |