Skip to content

Commit 101fb04

Browse files
ClearlyClairehiyuki2578
authored andcommitted
Fix potential private status leak (mastodon#10969)
1 parent f7a8501 commit 101fb04

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/statuses_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class StatusesController < ApplicationController
2727
def show
2828
respond_to do |format|
2929
format.html do
30-
unless user_signed_in?
30+
if current_account.nil?
3131
skip_session!
3232
expires_in 10.seconds, public: true
3333
end

0 commit comments

Comments
 (0)