Fix how other services used old FollowRemoteAccountService
This commit is contained in:
parent
0e9c1a297a
commit
183a23943b
3 changed files with 8 additions and 3 deletions
|
@ -11,7 +11,10 @@ class ProcessMentionsService < BaseService
|
|||
mentioned_account = Account.find_remote(username, domain)
|
||||
|
||||
if mentioned_account.nil? && !domain.nil?
|
||||
mentioned_account = follow_remote_account_service.("#{match.first}")
|
||||
begin
|
||||
mentioned_account = follow_remote_account_service.("#{match.first}")
|
||||
rescue Goldfinger::Error, HTTP::Error
|
||||
end
|
||||
end
|
||||
|
||||
next if mentioned_account.nil?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue