Browse Source

status: preserve visibility attribute when reblogging (infoleak fix) (#5789)

this should fix *all* remaining visibility-related mastodon ostatus infoleaks.
thanks to @csaurus@gnusocial.de for pointing out the infoleak.
pull/4/head
William Pitcock 6 years ago
committed by Eugen Rochko
parent
commit
32987004c9
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/models/status.rb

+ 1
- 0
app/models/status.rb View File

@ -278,6 +278,7 @@ class Status < ApplicationRecord
def set_visibility
self.visibility = (account.locked? ? :private : :public) if visibility.nil?
self.visibility = reblog.visibility if reblog?
self.sensitive = false if sensitive.nil?
end

Loading…
Cancel
Save