diff options
author | Claire <claire.github-309c@sitedethib.com> | 2021-11-14 21:55:40 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-14 21:55:40 +0100 |
commit | 3517867b7656ff506a04e394fc8c1a855b7d504a (patch) | |
tree | 60a068a415e4b6c12fb17208ebc2f46c0ea05994 /app/models/custom_emoji.rb | |
parent | 4b616c4f0a2158883034cd756391bd70265b787d (diff) |
Fix confusing error when webfinger request returns empty document (#16986)
For some reason, some misconfigured servers return an empty document when queried over webfinger. Since an empty document does not lead to a parse error, the error is not caught properly and triggers uncaught exceptions later on. This PR fixes that by immediately erroring out with `Webfinger::Error` on getting an empty response.
Diffstat (limited to 'app/models/custom_emoji.rb')
0 files changed, 0 insertions, 0 deletions