Merge remote-tracking branch 'parent/main' into upstream-20231221
This commit is contained in:
commit
a6b57e3890
154 changed files with 7762 additions and 1748 deletions
|
@ -34,7 +34,7 @@ class ReblogService < BaseService
|
|||
ActivityPub::DistributionWorker.perform_async(reblog.id)
|
||||
|
||||
create_notification(reblog)
|
||||
bump_potential_friendship(account, reblog)
|
||||
increment_statistics
|
||||
|
||||
reblog
|
||||
end
|
||||
|
@ -51,12 +51,8 @@ class ReblogService < BaseService
|
|||
end
|
||||
end
|
||||
|
||||
def bump_potential_friendship(account, reblog)
|
||||
def increment_statistics
|
||||
ActivityTracker.increment('activity:interactions')
|
||||
|
||||
return if account.following?(reblog.reblog.account_id)
|
||||
|
||||
PotentialFriendshipTracker.record(account.id, reblog.reblog.account_id, :reblog)
|
||||
end
|
||||
|
||||
def build_json(reblog)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue