mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-19 21:33:21 +00:00
Fix uncaught error when resource param is missing in Webfinger request (#11701)
This commit is contained in:
parent
b54b725d6b
commit
60e684af5f
|
@ -11,7 +11,7 @@ module WellKnown
|
||||||
|
|
||||||
expires_in 3.days, public: true
|
expires_in 3.days, public: true
|
||||||
render json: @account, serializer: WebfingerSerializer, content_type: 'application/jrd+json'
|
render json: @account, serializer: WebfingerSerializer, content_type: 'application/jrd+json'
|
||||||
rescue ActiveRecord::RecordNotFound
|
rescue ActiveRecord::RecordNotFound, ActionController::ParameterMissing
|
||||||
head 404
|
head 404
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue