about summary refs log tree commit diff
path: root/app/controllers
diff options
context:
space:
mode:
authorTakeshi Umeda <noel.yoshiba@gmail.com>2020-11-13 00:58:00 +0900
committerGitHub <noreply@github.com>2020-11-12 16:58:00 +0100
commit2b1a6e734ff42c17fb971cf909509b6b2ad84879 (patch)
treed94c398b4655d790d3d63faf277a1a0ef5e27c0e /app/controllers
parent4790a126bebddd83cbaf1a8436611536dcc417a0 (diff)
Add follow selected followers button (#15148)
* Add follow selected followers button

* Fix unused variable

* Fix i18n normalize
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/relationships_controller.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/relationships_controller.rb b/app/controllers/relationships_controller.rb
index 0835758f2..031e3241f 100644
--- a/app/controllers/relationships_controller.rb
+++ b/app/controllers/relationships_controller.rb
@@ -49,7 +49,9 @@ class RelationshipsController < ApplicationController
   end
 
   def action_from_button
-    if params[:unfollow]
+    if params[:follow]
+      'follow'
+    elsif params[:unfollow]
       'unfollow'
     elsif params[:remove_from_followers]
       'remove_from_followers'