Skip to content

Commit d022975

Browse files
committed
Fixing small bug with FollowRemoteAccountService usage
1 parent 086d487 commit d022975

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

app/services/process_feed_service.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ def fetch_remote_status(xml)
9898
account = Account.find_by(username: username, domain: domain)
9999

100100
if account.nil?
101-
account = follow_remote_account_service.("acct:#{username}@#{domain}", false)
101+
account = follow_remote_account_service.("#{username}@#{domain}", false)
102102
return nil if account.nil?
103103
end
104104

app/services/process_interaction_service.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,13 @@ def call(envelope, target_account)
1414
account = Account.find_by(username: username, domain: domain)
1515

1616
if account.nil?
17-
account = follow_remote_account_service.("acct:#{username}@#{domain}", false)
17+
account = follow_remote_account_service.("#{username}@#{domain}", false)
1818
return if account.nil?
1919
end
2020

2121
if salmon.verify(envelope, account.keypair)
2222
update_remote_profile_service.(xml.at_xpath('/xmlns:entry/xmlns:author'), account)
2323

24-
binding.pry
25-
2624
case verb(xml)
2725
when :follow
2826
follow!(account, target_account)

app/services/process_mentions_service.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def call(status)
1111
mentioned_account = Account.find_by(username: username, domain: domain)
1212

1313
if mentioned_account.nil?
14-
mentioned_account = follow_remote_account_service.("acct:#{match.first}")
14+
mentioned_account = follow_remote_account_service.("#{match.first}")
1515
end
1616

1717
mentioned_account.mentions.first_or_create(status: status)

0 commit comments

Comments
 (0)