Change remote interaction dialog to use specific actions (#9743)
* Change remote interaction dialog to use specific actions Instead of just "interact", use different strings based on whether it's a reply, reblog or favourite. Add explanation why the step is necessary in the first place * Remove obsolete strings
This commit is contained in:
parent
43c61bca60
commit
5654535728
33 changed files with 31 additions and 92 deletions
|
@ -5,6 +5,7 @@ class RemoteInteractionController < ApplicationController
|
|||
|
||||
layout 'modal'
|
||||
|
||||
before_action :set_interaction_type
|
||||
before_action :set_status
|
||||
before_action :set_body_classes
|
||||
|
||||
|
@ -45,4 +46,8 @@ class RemoteInteractionController < ApplicationController
|
|||
@body_classes = 'modal-layout'
|
||||
@hide_header = true
|
||||
end
|
||||
|
||||
def set_interaction_type
|
||||
@interaction_type = %w(reply reblog favourite).include?(params[:type]) ? params[:type] : 'reply'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue