]> cat aescling's git repositories - mastodon.git/commitdiff
Fix check for PotentialFriendshipTracker when replying (#7933)
authorEugen Rochko <eugen@zeonfederated.com>
Tue, 3 Jul 2018 03:00:44 +0000 (05:00 +0200)
committerGitHub <noreply@github.com>
Tue, 3 Jul 2018 03:00:44 +0000 (05:00 +0200)
app/services/post_status_service.rb

index bad82051a079f9883a1ce992c81adfbec6883231..4c3485853dd5a57eec218e799e3205b73a583486 100644 (file)
@@ -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