Browse Source

#1141 on remote follow

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

Pull queue receive 'nil' so no profile update.
closed-social-glitch-2
Yann GUERN 7 years ago
committed by GitHub
parent
commit
485d75a805
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      app/services/follow_remote_account_service.rb

+ 1
- 1
app/services/follow_remote_account_service.rb 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

Loading…
Cancel
Save