]> cat aescling's git repositories - mastodon.git/commitdiff
Self-notify on accepting follow requests (#8541)
authorThibG <thib@sitedethib.com>
Fri, 31 Aug 2018 13:17:31 +0000 (15:17 +0200)
committerEugen Rochko <eugen@zeonfederated.com>
Fri, 31 Aug 2018 13:17:31 +0000 (15:17 +0200)
app/controllers/api/v1/follow_requests_controller.rb

index 313fe2f81ce82eda317a31b8dc3ce88070b3f178..e9aca5f8a796641ab851b8c674a937c7c6acb06d 100644 (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