Notify remote users about mentions
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user