about summary refs log tree commit diff
path: root/app/controllers/shares_controller.rb
diff options
context:
space:
mode:
authorClworld <clworld@ggtea.org>2017-08-16 23:48:44 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-08-16 16:48:44 +0200
commitf814661fcaed99221bf0b250dbe14349cb702833 (patch)
treee6a497b4f6b5640e888b763880937f310cc8b773 /app/controllers/shares_controller.rb
parente33c28a6d8740b49d35a1ce23aa2ed84fa1a8690 (diff)
Make share intent modal to make "signed in as" shown. (#4611)
* Make share intent modal to make "signed in as" shown.

* fix glitch on mobile.
Diffstat (limited to 'app/controllers/shares_controller.rb')
-rw-r--r--app/controllers/shares_controller.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/controllers/shares_controller.rb b/app/controllers/shares_controller.rb
index d70d66ff8..994742c3d 100644
--- a/app/controllers/shares_controller.rb
+++ b/app/controllers/shares_controller.rb
@@ -1,9 +1,10 @@
 # frozen_string_literal: true
 
 class SharesController < ApplicationController
-  layout 'public'
+  layout 'modal'
 
   before_action :authenticate_user!
+  before_action :set_body_classes
 
   def show
     serializable_resource = ActiveModelSerializers::SerializableResource.new(InitialStatePresenter.new(initial_state_params), serializer: InitialStateSerializer)
@@ -22,4 +23,8 @@ class SharesController < ApplicationController
       text: params[:text],
     }
   end
+
+  def set_body_classes
+    @body_classes = 'compose-standalone'
+  end
 end