0
0
Fork 0

Notify remote users about mentions

This commit is contained in:
Eugen Rochko 2016-02-24 18:44:03 +01:00
parent 79609d6270
commit c967802c43
3 changed files with 41 additions and 5 deletions

View file

@ -9,6 +9,11 @@ class PostStatusService < BaseService
next unless local_account.nil?
follow_remote_account_service.("acct:#{match.first}")
end
status.mentions.each do |mentioned_account|
next if mentioned_account.local?
send_interaction_service.(status.stream_entry, mentioned_account)
end
end
private
@ -16,4 +21,8 @@ class PostStatusService < BaseService
def follow_remote_account_service
@follow_remote_account_service ||= FollowRemoteAccountService.new
end
def send_interaction_service
@send_interaction_service ||= SendInteractionService.new
end
end