]> cat aescling's git repositories - mastodon.git/commit
Fix some timeouts when searching URLs by limiting some database queries (#13253)
authorThibG <thib@sitedethib.com>
Thu, 12 Mar 2020 22:06:43 +0000 (23:06 +0100)
committerGitHub <noreply@github.com>
Thu, 12 Mar 2020 22:06:43 +0000 (23:06 +0100)
commitcb12a2cdd3fbe2c07a556610596a2de5446b1f50
tree4846ed2341da972c5c172866e430cae8938313b1
parentbea0bb39d6c1762c97da484ffa8b5d73341e67e2
Fix some timeouts when searching URLs by limiting some database queries (#13253)

Only look up private toots from database if the request failed because of 401,
403 or 404 errors, as those may indicate a private toot, rather than something
that isn't a toot or cannot be processed.
app/services/fetch_resource_service.rb
app/services/resolve_url_service.rb