Add follow selected followers button (#15148)

* Add follow selected followers button

* Fix unused variable

* Fix i18n normalize
This commit is contained in:
Takeshi Umeda
2020-11-13 00:58:00 +09:00
committed by GitHub
parent 4790a126be
commit 2b1a6e734f
4 changed files with 14 additions and 1 deletions

View File

@ -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'