Merge pull request #87 from tootsuite/master

merge upstream
This commit is contained in:
beatrix
2017-07-20 11:24:32 -04:00
committed by GitHub
64 changed files with 499 additions and 332 deletions

View File

@@ -17,11 +17,7 @@ class Api::BaseController < ApplicationController
render json: { error: 'Record not found' }, status: 404
end
rescue_from Goldfinger::Error do
render json: { error: 'Remote account could not be resolved' }, status: 422
end
rescue_from HTTP::Error do
rescue_from HTTP::Error, Mastodon::UnexpectedResponseError do
render json: { error: 'Remote data could not be fetched' }, status: 503
end