diff options
Diffstat (limited to 'app/services/reblog_service.rb')
-rw-r--r-- | app/services/reblog_service.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/app/services/reblog_service.rb b/app/services/reblog_service.rb index 8d8b15a41..955a2bdbc 100644 --- a/app/services/reblog_service.rb +++ b/app/services/reblog_service.rb @@ -27,6 +27,8 @@ class ReblogService < BaseService end create_notification(reblog) + bump_potential_friendship(account, reblog) + reblog end @@ -44,6 +46,11 @@ class ReblogService < BaseService end end + def bump_potential_friendship(account, reblog) + return if account.following?(reblog.reblog.account_id) + PotentialFriendshipTracker.record(account.id, reblog.reblog.account_id, :reblog) + end + def build_json(reblog) Oj.dump(ActivityPub::LinkedDataSignature.new(ActiveModelSerializers::SerializableResource.new( reblog, |