about summary refs log tree commit diff
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-02-28 14:34:25 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-02-28 14:34:25 +0100
commit9ec03ab5f5647491bedf4eed8deb1d470e10b283 (patch)
treed2899500c0ea45a95daeed52b01950609328adb3
parent8fada4fae25592e24f709faff41b0dedf6d5e36f (diff)
Ping hubs when following somebody, too
-rw-r--r--app/services/follow_service.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/services/follow_service.rb b/app/services/follow_service.rb
index 623d52b74..bcf7f5f97 100644
--- a/app/services/follow_service.rb
+++ b/app/services/follow_service.rb
@@ -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