about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-08-31 15:17:31 +0200
committerEugen Rochko <eugen@zeonfederated.com>2018-08-31 15:17:31 +0200
commit0b62585748ffb7bb6c754bdfaad1d1a302dedace (patch)
treeb3b1e53f53b632e1ea15ae6e954ab9bd5871ec2b /app
parentfe56d26f7b5bf6718bb5b8c28a7daaa45fd302ee (diff)
Self-notify on accepting follow requests (#8541)
Diffstat (limited to 'app')
-rw-r--r--app/controllers/api/v1/follow_requests_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/api/v1/follow_requests_controller.rb b/app/controllers/api/v1/follow_requests_controller.rb
index 313fe2f81..e9aca5f8a 100644
--- a/app/controllers/api/v1/follow_requests_controller.rb
+++ b/app/controllers/api/v1/follow_requests_controller.rb
@@ -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