From: Yann GUERN Date: Sat, 8 Apr 2017 01:24:35 +0000 (+0200) Subject: #1141 on remote follow X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=485d75a80500f12fcb59191a79a514fb5ad1c4e3;p=mastodon.git #1141 on remote follow The async action is send before persist, account.id not yet generated Pull queue receive 'nil' so no profile update. --- diff --git a/app/services/follow_remote_account_service.rb b/app/services/follow_remote_account_service.rb index 936953429..9ca7f653a 100644 --- a/app/services/follow_remote_account_service.rb +++ b/app/services/follow_remote_account_service.rb @@ -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