Notify remote users about mentions
This commit is contained in:
parent
79609d6270
commit
c967802c43
3 changed files with 41 additions and 5 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue