1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-27 14:28:24 +09:00

Fix check for PotentialFriendshipTracker when replying (#7933)

This commit is contained in:
Eugen Rochko 2018-07-03 05:00:44 +02:00 committed by GitHub
parent 23e1f143de
commit b0968623fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View 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