]> cat aescling's git repositories - mastodon.git/commitdiff
Ping hubs when following somebody, too
authorEugen Rochko <eugen@zeonfederated.com>
Sun, 28 Feb 2016 13:34:25 +0000 (14:34 +0100)
committerEugen Rochko <eugen@zeonfederated.com>
Sun, 28 Feb 2016 13:34:25 +0000 (14:34 +0100)
app/services/follow_service.rb

index 623d52b74bf428a7bcd2c2f4cdfc0cd749a37025..bcf7f5f97ba566fa59b85d81afb21b6f88595473 100644 (file)
@@ -9,6 +9,7 @@ class FollowService < BaseService
 
     follow = source_account.follow!(target_account)
     send_interaction_service.(follow.stream_entry, target_account)
+    source_account.ping!(atom_user_stream_url(id: source_account.id), HUB_URL)
   end
 
   private