From 485d75a80500f12fcb59191a79a514fb5ad1c4e3 Mon Sep 17 00:00:00 2001 From: Yann GUERN Date: Sat, 8 Apr 2017 03:24:35 +0200 Subject: [PATCH] #1141 on remote follow The async action is send before persist, account.id not yet generated Pull queue receive 'nil' so no profile update. --- app/services/follow_remote_account_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/follow_remote_account_service.rb b/app/services/follow_remote_account_service.rb index 936953429e..9ca7f653a4 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