diff options
Diffstat (limited to 'app/services/follow_remote_account_service.rb')
-rw-r--r-- | app/services/follow_remote_account_service.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/app/services/follow_remote_account_service.rb b/app/services/follow_remote_account_service.rb index b309425a8..37339d8ed 100644 --- a/app/services/follow_remote_account_service.rb +++ b/app/services/follow_remote_account_service.rb @@ -1,7 +1,9 @@ +# frozen_string_literal: true + class FollowRemoteAccountService < BaseService include OStatus2::MagicKey - DFRN_NS = 'http://purl.org/macgirvin/dfrn/1.0'.freeze + DFRN_NS = 'http://purl.org/macgirvin/dfrn/1.0' # Find or create a local account for a remote user. # When creating, look up the user's webfinger and fetch all @@ -49,7 +51,7 @@ class FollowRemoteAccountService < BaseService get_profile(xml, account) account.save! - return account + account end private |