From: Eugen Rochko Date: Tue, 3 Jul 2018 03:00:44 +0000 (+0200) Subject: Fix check for PotentialFriendshipTracker when replying (#7933) X-Git-Url: https://git.xn--scling-oua.cat.family/?a=commitdiff_plain;h=b0968623fa9cfcf39edb393b8b997308cd7e2818;p=mastodon.git Fix check for PotentialFriendshipTracker when replying (#7933) --- 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