1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-11-28 06:48:38 +09:00

Ping hubs when following somebody, too

This commit is contained in:
Eugen Rochko 2016-02-28 14:34:25 +01:00
parent 8fada4fae2
commit 9ec03ab5f5

View File

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