about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2018-07-03 05:00:44 +0200
committerGitHub <noreply@github.com>2018-07-03 05:00:44 +0200
commitb0968623fa9cfcf39edb393b8b997308cd7e2818 (patch)
treebc1fc010cd990ceac7038ce8845ee83d8d56f22e /app/services
parent23e1f143de0764e349912c6d7a6876c5de671ff6 (diff)
Fix check for PotentialFriendshipTracker when replying (#7933)
Diffstat (limited to 'app/services')
-rw-r--r--app/services/post_status_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/post_status_service.rb b/app/services/post_status_service.rb
index bad82051a..4c3485853 100644
--- a/app/services/post_status_service.rb
+++ b/app/services/post_status_service.rb
@@ -83,7 +83,7 @@ class PostStatusService < BaseService
   end
 
   def bump_potential_friendship(account, status)
-    return if !status.reply? || account.following?(status.account_id)
+    return if !status.reply? || account.following?(status.in_reply_to_account_id)
     PotentialFriendshipTracker.record(account.id, status.in_reply_to_account_id, :reply)
   end
 end