1
0

#1141 on remote follow

The async action is send before persist, account.id not yet generated

Pull queue receive 'nil' so no profile update.
This commit is contained in:
Yann GUERN 2017-04-08 03:24:35 +02:00 committed by GitHub
parent a872f2f4c6
commit 485d75a805

View File

@ -51,8 +51,8 @@ class FollowRemoteAccountService < BaseService
account.uri = get_account_uri(xml)
account.hub_url = hubs.first.attribute('href').value
get_profile(body, account)
account.save!
get_profile(body, account)
account
end