about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2019-06-05 13:40:20 +0200
committerEugen Rochko <eugen@zeonfederated.com>2019-06-05 13:40:20 +0200
commit7fa23ec697e9e2c5f0434b9682de7017133df8dc (patch)
tree7d9a8e94cf1ac768edf8427e7ff7b43abaf5bfa0
parentd34a3a2cc72c12ae5119150a8ac18dd8fb7a4e6b (diff)
Fix potential private status leak (#10969)
-rw-r--r--app/controllers/statuses_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/statuses_controller.rb b/app/controllers/statuses_controller.rb
index e60646ba3..b8f4e675e 100644
--- a/app/controllers/statuses_controller.rb
+++ b/app/controllers/statuses_controller.rb
@@ -27,7 +27,7 @@ class StatusesController < ApplicationController
   def show
     respond_to do |format|
       format.html do
-        unless user_signed_in?
+        if current_account.nil?
           skip_session!
           expires_in 10.seconds, public: true
         end