mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-11-23 23:33:37 +00:00
Rescue SSL errors when processing mentions, remove useless line (#7184)
This commit is contained in:
parent
1957209efd
commit
ff87d1bc3e
|
@ -17,13 +17,11 @@ class ProcessMentionsService < BaseService
|
||||||
if mention_undeliverable?(status, mentioned_account)
|
if mention_undeliverable?(status, mentioned_account)
|
||||||
begin
|
begin
|
||||||
mentioned_account = resolve_account_service.call($1)
|
mentioned_account = resolve_account_service.call($1)
|
||||||
rescue Goldfinger::Error, HTTP::Error
|
rescue Goldfinger::Error, HTTP::Error, OpenSSL::SSL::SSLError, Mastodon::UnexpectedResponseError
|
||||||
mentioned_account = nil
|
mentioned_account = nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
mentioned_account ||= Account.find_remote(username, domain)
|
|
||||||
|
|
||||||
next match if mention_undeliverable?(status, mentioned_account)
|
next match if mention_undeliverable?(status, mentioned_account)
|
||||||
|
|
||||||
mentioned_account.mentions.where(status: status).first_or_create(status: status)
|
mentioned_account.mentions.where(status: status).first_or_create(status: status)
|
||||||
|
|
Loading…
Reference in a new issue