Merge branch 'master' into glitch-soc/merge-upstream
This commit is contained in:
@@ -37,6 +37,7 @@ class FavouriteService < BaseService
|
||||
end
|
||||
|
||||
def bump_potential_friendship(account, status)
|
||||
ActivityTracker.increment('activity:interactions')
|
||||
return if account.following?(status.account_id)
|
||||
PotentialFriendshipTracker.record(account.id, status.account_id, :favourite)
|
||||
end
|
||||
|
@@ -86,7 +86,9 @@ class PostStatusService < BaseService
|
||||
end
|
||||
|
||||
def bump_potential_friendship(account, status)
|
||||
return if !status.reply? || account.following?(status.in_reply_to_account_id)
|
||||
return if !status.reply? || account.id == status.in_reply_to_account_id
|
||||
ActivityTracker.increment('activity:interactions')
|
||||
return if account.following?(status.in_reply_to_account_id)
|
||||
PotentialFriendshipTracker.record(account.id, status.in_reply_to_account_id, :reply)
|
||||
end
|
||||
end
|
||||
|
@@ -47,6 +47,7 @@ class ReblogService < BaseService
|
||||
end
|
||||
|
||||
def bump_potential_friendship(account, reblog)
|
||||
ActivityTracker.increment('activity:interactions')
|
||||
return if account.following?(reblog.reblog.account_id)
|
||||
PotentialFriendshipTracker.record(account.id, reblog.reblog.account_id, :reblog)
|
||||
end
|
||||
|
Reference in New Issue
Block a user