Adding a notification stack for error messages
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user