1
0
mirror of https://github.com/mastodon/mastodon synced 2024-11-24 15:16:19 +09:00

Self-notify on accepting follow requests (#8541)

This commit is contained in:
ThibG 2018-08-31 15:17:31 +02:00 committed by Eugen Rochko
parent fe56d26f7b
commit 0b62585748

View File

@ -13,6 +13,7 @@ class Api::V1::FollowRequestsController < Api::BaseController
def authorize
AuthorizeFollowService.new.call(account, current_account)
NotifyService.new.call(current_account, Follow.find_by(account: account, target_account: current_account))
render_empty
end